[Zope] Radio button effect for links

Sion Morris s.morris@bangor.ac.uk
Tue, 17 Jul 2001 20:46:22 +0100


Hi,

Can someone please help me with what I thought would be a simple problem;

I would like a series of links in a nav bar to behave like radio 
buttons. When a page is selected the link to that page in the nav bar 
is deactivated and is displayed as normal text.

I have tried the following in a DTML Method called 'nav'.

<dtml-var id>
<dtml-if expr="id='index_html'">  ## index_html is a DTML Document 
<dtml-var nav>
    <b>index page</b>
<dtml-else>
   <a href="index_html">
</dtml-if>

Even though <dtml-var id> displays the document id as 'index_html' it 
still shows the link instead of the bolded text.

Has anyone done this in the past and is willing to share their wisdom.

Thanks,

Sion