{module_faqresults} returns all FAQs on opening of page (screen images included)
hello, i’m going through book on business catalyst , written before new version things not clear. book not show happening faq business catalyst module.
when include business catalyst module faq search form adds {module_faqresults} automatically , when viewing page in browser instead of waiting search term added input box , searched, page defaults faqs in database.
then if search term return items pertaining search term. how can not display faqs page opens , instead wait search , return results?
i’ve included several images explain i’m talking about.
thanks help.
hey lisa,
one way go around to:
-assign display:none css property faqresultstable class
-insert code snippet on page faq search on:
<script>
if ("{module_url,a}" == "faq")
{
document.getelementsbyclassname('faqresultstable')[0].style.display='block';
}
</script>
this show results table if a=faq present in url , happens after press "search" button.
hope helps, have pasted below code of page used test this:
<style>
.faqresultstable
{
display:none
}
</style>
<form action="/default.aspx?a=faq&pageid={module_oid}" method="post" name="catfaqform74695">
<table border="0" cellspacing="0" cellpadding="2" class="faq-search">
<tbody>
<tr>
<td><label for="cat_category">category</label><br />
<select name="cat_category" id="cat_category" class="cat_dropdown_small">{module_categorylist}</select></td>
<td><label for="cat_faqsortby">sort by</label><br />
<select name="cat_faqsortby" id="cat_faqsortby" class="cat_dropdown_smaller">
<option value="pop">popularity</option>
<option value="sub">subject</option>
</select></td>
<td><label for="cat_faqsearch">search (optional)</label><br />
<input type="text" name="cat_faqsearch" id="cat_faqsearch" class="cat_textbox_small" /></td>
<td> <br />
<input type="submit" value="search" class="cat_button" /></td>
</tr>
</tbody>
</table>
</form>
{module_faqresults}
<script>
if ("{module_url,a}" == "faq")
{
document.getelementsbyclassname('faqresultstable')[0].style.display='block';
}
</script>
More discussions in Business Catalyst
adobe




Comments
Post a Comment