zenphoto forums » Zenpage

If statement on zen page template

(3 posts)

Tags:

  1. RaquelP

    Apprentice
    Joined: Feb '11
    Posts: 2

    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!

    Posted 2 years ago #
  2. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,365

    Of course that is possible

    if($_zp_current_zenpage_page->getTitlelink() != '<titlelink of the page>') {
    <your menu>
    }
    Don't forget to read the Forum rules and usage resources
    Posted 2 years ago #
  3. RaquelP

    Apprentice
    Joined: Feb '11
    Posts: 2

    Thanks acrylian - that's perfect!

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.