Member
Member
RaquelP   2011-02-26, 12:29
#1
Hi
I would like to add an if statement to pages.php, I don't know if this is possible, I'm no php expert and my attempts so far have been unsuccessful.

I have a sub menu, which I want to show on all pages except one.
So what I would like to say is:
if page is not x then show menu.

Can anybody please help me out with the syntax I should use here?

Many thanks for any help!
Administrator
Administrator
acrylian   2011-02-26, 16:29
#2
Of course that is possible
`
if($_zp_current_zenpage_page->getTitlelink() != '<titlelink of the page>') {
<your menu>
}
`
Member
Member
RaquelP   2011-02-26, 17:39
#3
Thanks acrylian - that's perfect!
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.