Page 1 of 1

(Resolved) Glossary / FAQ Module - Need help

Posted: Fri Aug 31, 2007 4:15 pm
by Neo
Hi all,

I had installed the Glossary / FAQ module in the website I am currently working on. I followed the instructions in the forum to install and add questions to this module.  :)

But there are still a couple of problems I could not resolve till now. I have listed them below.

1. The categories created in the FAQ module is listed in the front end but the category name is replaced by some wierd characters. Not sure why the module is not listing the category names??

2. When I click the category names or the questions, should I create a separate page for the answers even if I want the answers to be inline? This is because I have chosen inline display for the answers but still when I click the questions, it is displaying the Page not found error. Not sure if this has to do with my settings in the Admin Prefs for Glossary module.

I have given the URL to the FAQ page in my website below.

http://cms.ce.gatech.edu/ceetest/glossa ... words/120/

Any pointers to these questions would be greatly helpful.

Thanks,
Neo

Re: Glossary / FAQ Module - Need help

Posted: Tue Sep 04, 2007 7:26 pm
by Neo
Hi all,

I am still figuring out the problem with the category names. Any help would be great.

Thanks,
Neo

Re: Glossary / FAQ Module - Need help (Resolved)

Posted: Wed Sep 05, 2007 3:57 pm
by Neo
Hi all,

I figured out the reason for the category names not listed properly. Using the steps mentioned below, I reorganized the template for the Glossary page and then it appeared as I desired. So I thought this might help anyone else who is also facing similar problems.

Steps:

1. In the main menu, click the Glossary / Dictionary and go to the admin section of this module.

2. Go to Admin preferences and make sure that the template is set to stylesheet open and close.

3. Now, click the manage template and modify the code to remove the display of category names from the smarty code. The code should look something like this.

Code: Select all

{literal}
<__script__ type="text/javascript">
  function term_toggle(term)
   {
   if (document.getElementById(term).style.display=='block')
      {
      document.getElementById(term).style.display='none';
      }
   else
      {
      document.getElementById(term).style.display='block';
      }
   }
</__script>
{/literal}

<dl compact>
    {section name=numloop loop=$items}
    		<dt>     <a name="{$items[numloop].safeterm}" href="javascript:term_toggle('term_{$items[numloop].name}')">{$items[numloop].name}</a></dt><dd id="term_{$items[numloop].name}" {if $items[numloop].showdef != 1}style="display:none"{else}style="display:block"{/if}>{$items[numloop].definition}</dd>   	
    {/section}
</dl>
4. Now, go to the page where the glossary module is displayed (say FAQ page or something like that) and make sure that the content of that page is something like this.

Code: Select all

Login User id/Passwords

{cms_module module='Glossary' cat="Login User id Passwords"}
CEEINFO/Webmail

{cms_module module='Glossary' cat="CEEINFO/Webmail"}
5. Now, go to the FAQ page from the front end and it should look something like this.

http://cms.ce.gatech.edu/ceetest/glossa ... words/120/

Hope this helps  :)

Neo