Announcement

Collapse
No announcement yet.

Is there a variable for the current page url?

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

    Is there a variable for the current page url?

    Hi all,

    Title says it all! but is there a variable for the url of the purrent page?

    I want to set up a block if, that would look something like

    currentpageurl == CatalogUrl
    I'm just missing the currentpageurl bit!!

    Any ideas?

    #2
    Not sure this would work anyway as you're trying to compare two text strings and I suspect the '==' will only work on numbers.

    You could do this with a variable...

    Say you want to control whether a particular message is displayed on certain pages....

    Create a new 'true/false' variable say 'DisplayBentleyBlokesMessage' and set the default value of this variable to 'False'. Now go to the properties of the section/product where you want this message to be displayed and set its value to 'True'. Then put your message inside a block in your layout that contains the condition 'DisplayBentleyBlokesMessage'.

    Alternatively create a new layout that has the message in and select this layout for the section/product in question.

    Dave

    Comment


      #3
      Hi Dave,

      Thanks for that! After posting I though I may have been barking up the wrong tree and followed the T/F avenue. I was hoping to automate the block if rather than creating something else that I have to remember to set!

      Cheers!

      Comment

      Working...
      X