Member
Member
gjr   2009-12-02, 05:10
#1

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?

Administrator
Administrator
acrylian   2009-12-02, 10:40
#2

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
without. Does that help for now?

Member
Member
gjr   2009-12-02, 12:55
#3

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'

Member
Member
micheall   2009-12-02, 13:03
#4

trying to style the 'current' as in the active link?

Administrator
Administrator
acrylian   2009-12-02, 13:24
#5

Actually my way suggests to primarily style the instead of the. So plain `` 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.

Member
Member
gjr   2009-12-02, 14:15
#6

Thanks Acrylian. It is not crucial I guess, just being finicky...

Administrator
Administrator
acrylian   2009-12-02, 14:50
#7

No problem...;-)

Member
Member
vincent3569   2010-03-28, 20:44
#8

@ 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 ?

Administrator
Administrator
acrylian   2010-03-29, 08:44
#9

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.

Member
Member
vincent3569   2010-03-29, 21:45
#10

in fact, I've modified zenpage-template-functions.php (it's very bad, i know it...)

ligne 1503-1504
if($i == $current) {
echo "".$i."\n";

Administrator
Administrator
acrylian   2010-03-30, 08:10
#11

Well, everything that helps you...:-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.