![]() |
|
printNewsPageListWithNav - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: printNewsPageListWithNav (/thread-6217.html) |
printNewsPageListWithNav - gjr - 2009-12-02 An easy one, would hack the template functions but hate to change the core. Can you put a 'current' class on the current list item in news page navigation using printNewsPageListWithNav similar to how printPageListWithNav functions? printNewsPageListWithNav - acrylian - 2009-12-02 I could do that, but have you tried using CSS like `#yourid ul li` in opposite to `#yourid ul il a`? The current entry is always just a plain `<li>` without `<a>`. Does that help for now? printNewsPageListWithNav - gjr - 2009-12-02 Thanks for the consideration. Actually that wouldn't help my current style needs since I am trying to style the 'current' which is a li. There would be no way for me to distinguish between the li of current(unless there was a current class), li with an a, and li with 'disabled_link' printNewsPageListWithNav - micheall - 2009-12-02 trying to style the 'current' as in the active link? printNewsPageListWithNav - acrylian - 2009-12-02 Actually my way suggests to primarily style the `<a>` instead of the `<li>`. So plain `<li>` is the active/current state and all others are not. Like I did on the Zenpage-default theme for example. Maybe you could give a link with an example what you are actually trying? But for consistency with the Zenphoto pagelist I might consider adding this for 1.2.8. And just a sidenote: You can always make your own function with a new name as a theme custom function if one of the predefined does not exactly fit your needs. printNewsPageListWithNav - gjr - 2009-12-02 Thanks Acrylian. It is not crucial I guess, just being finicky...
printNewsPageListWithNav - acrylian - 2009-12-02 No problem...;-) printNewsPageListWithNav - vincent3569 - 2010-03-28 @ acrylian you wrote before, that you might align news pagelist with photo pagelist for 1.2.8. in fact, i still have the problem, so i presume you forgot it for 1.2.9? I try to solve the problem with zp-galleriffic : can you help me to design the good css code ? printNewsPageListWithNav - acrylian - 2010-03-29 Well, here we have an example why tickets should be used as forum threads tend to get forgotten. So yes, I have forgotten about this as there were much more important things to do. I put it on my list again. No, sorry, I can't help you with your specific css problem. printNewsPageListWithNav - vincent3569 - 2010-03-29 in fact, I've modified zenpage-template-functions.php (it's very bad, i know it...) ligne 1503-1504 if($i == $current) { echo "<li class=\"current\"><span>".$i."</span>\n"; printNewsPageListWithNav - acrylian - 2010-03-30 Well, everything that helps you...:-) |