Member
Member
RaquelP   26-02-2011, 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   26-02-2011, 16:29
#2

Of course that is possible
`
if($_zp_current_zenpage_page->getTitlelink() != '') {

}
`

Member
Member
RaquelP   26-02-2011, 17:39
#3

Thanks acrylian - that's perfect!

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