Page 1 of 1

Currentpage HTML Nugget on Page

Posted: Mon Feb 11, 2013 9:17 am
by CABG
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">
<ul>
<li class="currentpage navlink_first"> <a title="Blog" href="http://blog.goethe.de/treitari/">Blog</a></li>
<li class=""> <a title="Autoren" href="http://blog.goethe.de/treitari/pages/au ... ri</a></li>
<li class="navlink_last"><a title="√úbersetzer" href="http://blog.goethe.de/treitari/pages/tr ... ri</a></li>
</ul>
</div>

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 http://blog.goethe.de/treitari/)

Please read https://github.com/s9y/additional_plugi ... 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)