We have a basic CSS menu on our site which sets the position of the 
background image depending on which page we're on.

The code below checks the page's headline and applies the appropriate CSS 
id which contains the correct background position. However, this doesn't 
hold up well if the user changes the headline or reorders the pages, etc.

Is there a better way to achieve the same result?

<li id="nav_1">
<a href="<%anc_page1%>"<reddot:cms><if><query 
valuea="Context:CurrentPage.Elements.GetElement(hdl_Headline).GetHtml()" 
operator="" valueb="Page 1"><htmltext>id="on1"</htmltext></query></if><
/reddot:cms>title="Page 1">Page 1</a>
</li>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to