Currentpage HTML Nugget on Page

Creating and modifying plugins.
Post Reply
Posts: 4
Joined: Thu Jan 10, 2013 10:44 am

Currentpage HTML Nugget on Page

Post by CABG » 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>

User avatar
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Currentpage HTML Nugget on Page

Post by Timbalu » Mon Feb 11, 2013 9:56 am

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)

Serendipity Styx Edition and additional_plugins @ @

Post Reply