Page 1 of 1

Currentpage HTML Nugget on Page

Posted: Mon Feb 11, 2013 9:17 am
Hello I am using HTML Nugget on Page (serendipity_event_page_nugget) for my Blog because I have a multilingual navigation bar. Unfortunately currentpage no longer works on my blog. The first navigation point is always highlighed but rest never is. Hover works though.
How do I have to change the code to fix this?
<div id="sitenav" class="snbelow">
<li class="currentpage navlink_first"> <a title="Blog" href="">Blog</a></li>
<li class=""> <a title="Autoren" href=" ... ri</a></li>
<li class="navlink_last"><a title="√úbersetzer" href=" ... ri</a></li>

Re: Currentpage HTML Nugget on Page

Posted: Mon Feb 11, 2013 9:56 am
by Timbalu
You are even lucky that browsers know what you mean to do and render it nearly fine... (please see you source code at

Please read ... age_nugget
It is not intended to enter banner or navigation code into the head part of a html page, at last it is not valid HTML. Hmmm, there must be some switch to place this code to the banner part...

I would pled for three things:
  • Upgrade Serendipity. It is outdated. We have said this quite often, having other questions from Goethe here in the past.
  • Fix the other sidebar unclosed tag errors, as also have said before...
  • Put this nav below banner section into your index.tpl and add this into your class="

    Code: Select all

    {if $currpage==$navlink.href or $currpage2==$navlink.href}currentpage{/if}
    and try to add the multilang part there somehow... (this could be done by a templates lang constant for example)