Member
Member
jackdaw   2011-02-04, 13:55
#1

I want to style two links within my ZP installation just like the ones in WP. To do that I have to check for either the presence of a custom page I made for showing the lastest additions of images (/page/latest.php), or the presence of a regular gallery/album/image page.

You can see what I mean when you take a look at the sidebar:
http://www.spoenk.nl/beeldend/page/latest

In the main menu only the 'nieuwste foto's' and 'portfolio' links belong to ZP. The only thing I need to find out on which of the two kind of pages I am. I tried all kinds of functions, but somehow I did not succeed yet. Any idea's?

Administrator
Administrator
acrylian   2011-02-04, 14:20
#2

For custom pages you can use the $_zp_gallery_page global (stores "latest.php" in this case if you are on it). For "regular" items use the object model and check for the current item.

Member
Member
jackdaw   2011-02-04, 15:20
#3

Great!

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