Glossary Module - How do I hide "A-Z" link?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
hotaru
Forum Members
Forum Members
Posts: 79
Joined: Mon Apr 17, 2006 5:38 pm

Glossary Module - How do I hide "A-Z" link?

Post by hotaru »

Okay, this is probably a pretty simple question. I'm using the Glossary module for a FAQ, and it's working great.

Since I have it set to show all the questions on 1 page, I'd like to remove the little "A-Z" link that normally lets you show more terms. But my CSS skills are rather basic and my javascript skills zero, so I can't recognize what to comment-out in the template.

I'm using the "stylesheet-open-and-close" template which looks exactly like:

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}
<div class="glossarynav">{$navprev}  {section name=numloop loop=$navarray}<a href="{$navarray[numloop].link}">{$navarray[numloop].name}</a>{if ! $smarty.section.numloop.last} : {/if}{/section}  {$navnext}</div><br />
<dl compact>
    {section name=numloop loop=$items}
    		<dt><a 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>
Thanks very much for any help!
cyberman

Re: Glossary Module - How do I hide "A-Z" link?

Post by cyberman »

Haven't try it but I think the attribute display for class "glossarynav" should set to hidden ...
hotaru
Forum Members
Forum Members
Posts: 79
Joined: Mon Apr 17, 2006 5:38 pm

Re: Glossary Module - How do I hide "A-Z" link?

Post by hotaru »

Thank you! It worked perfectly!    :)

In case anyone else is searching the forum and is as bad at this as I am, I simply commented out part of the glossary template like this:

Code: Select all

<!-- <div class="glossarynav">{$navprev}  {section name=numloop loop=$navarray}
<a href="{$navarray[numloop].link}">{$navarray[numloop].name}</a>
{if ! $smarty.section.numloop.last} : {/if}{/section}  {$navnext}</div> -->
Post Reply

Return to “CMSMS Core”