Page 1 of 1

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

Posted: Wed Apr 26, 2006 6:07 pm
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!

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

Posted: Thu Apr 27, 2006 4:47 am
by cyberman
Haven't try it but I think the attribute display for class "glossarynav" should set to hidden ...

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

Posted: Thu Apr 27, 2006 5:50 pm
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> -->