Announcement

Collapse
No announcement yet.

Block If things

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Block If things

    Hi All

    Having a go at putting in a conditional Block if on a brochure page.

    Basically I want a bit of code that if the specific page is X then insert the content, if no, then dont.

    So, I thought I would hang off the title of the page - something along the following lines...

    HTML Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22PageTitle%22%20%2f%3e%20%3d%3d%20%22Title Here%22" >
    <p>Content if the page title is "Title Here"</p>
    </actinic:block>
    But it does not seem to be working - pretty sure this used to when I have done similar in the past.

    What have I got wrong?

    Cheers.

    #2
    Works for me if the Brochure page > General tab > Name field is matching. Which layout are you placing the code in?.
    Peblaco

    Comment


      #3
      Cheers Peblaco - will get it open again this morning and let you know

      Comment


        #4
        Hi Prblaco,

        Hmmm - not working for me - not showing the content in the block

        I am adding this to the Standard Brochure Page Bulk layout.....

        Comment


          #5
          Can the PageTitle variable used at that level? Variables are often restricted to specific locations to prevent infinite loops and all types of craziness going on.

          Rather than use the PageTitle it may be quicker and neater in the long run (no typos to worry about and easier future updating) to have a brochure page focussed user defined variable on either a True/False setting or even a list of options so you can easily change the message if required on various brochure pages.


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            Cheers Jont !!

            Taking it up a few levels worked

            But I get your point about the variable - so will get that sorted.

            Ta.

            Comment

            Working...
            X