Announcement

Collapse
No announcement yet.

Custom Variable Properties on Contact Us Page

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

    Custom Variable Properties on Contact Us Page

    I have created a Customer Service Navigation Layout which I want to show only on certain pages.
    I have created a custom Variable called "ShowCustomerServiceNav" which I set to true on the brochure pages I wish the naviagtion layout to be shown on, and it works, but I am unsure how to get it to show on the "Contact Us" page.
    On the brochure pages (or product pages if necessary) I can just set the variable to "True" on the Properties tab of the page details, but the "Contact Us" page does not appear to have a page details page.

    The same would apply to any pages selected using the "Select Page Type" drop down list at the top such as "Site Map", "Terms and Conditions", etc (do these pages have a name I assume these are not classed as brochure pages).

    Am I missing something?

    If you want to see a sample page see the following test site:
    http://www.golfteewarehouse.co.uk/ac.../delivery.html
    Darren Guppy
    Golf Tee Warehouse
    Golf Tees and Golf Accessories.

    #2
    You specify those pages by using the name as you see in the drop down list on the design tab. Page type = "Contact Us" is a rough idea of what you need to do.

    Comment


      #3
      You may need to place the code in a blockif in the outer layout and test for the pagetype being Contact Us or Terms etc.

      Comment


        #4
        Thanks for the prompt replies.

        I have used a Page Type = "Contact Us" in a blockif to set class="active" in the layout, so I have figured out that way of referring to the page, but I I have put the whole layout inside a blockif "actinic:variable name="ShowCustomerServiceNav" /> == true", I assume I could add an "OR" to change the statement inside this blockif to say if "ShowCustomerServiceNav = true OR Page Type = Contact Us".

        Would this be a workable solution. I will go and give it a try.
        Darren Guppy
        Golf Tee Warehouse
        Golf Tees and Golf Accessories.

        Comment


          #5
          Sounds feasible - give it a go. (You may need to negate your testing instead - it's always confusing which way round the test works)

          Comment


            #6
            That seems to have fixed the problem.
            Initially an error message was givene stating that the custom variable (which has a "Place of Setting" of Brochure) has been used on a non-brochure page (or similar message) but the error message has now gone away. Am I safe to ignore the message, or should I change the "Place of setting" value
            Darren Guppy
            Golf Tee Warehouse
            Golf Tees and Golf Accessories.

            Comment


              #7
              I'd change the place of setting - but you might have to change your test then.

              Comment


                #8
                On checking the error message again I have realised the problem was with a different piece of code in the layout.

                The actual error message is:
                "Error in Condition (The 'BrochurePageURL' variable has been placed within the 'Brochure Nav Box GTW Customer Service' layout, but it won't work there."

                The error messages go away if I remove the layout from the "Contact Us" page.

                The blockif that is causing the problem surrounds the code " class="active" " and is <actinic:variable name="BrochurePageURL" /> == "AboutUs.html".
                Can I alter this code so it will work in both brochure and non-brochure (i.e Contact Us) pages.

                Could I surround the block with another block such as - PageType = "Brochure"
                Darren Guppy
                Golf Tee Warehouse
                Golf Tees and Golf Accessories.

                Comment


                  #9
                  I have surrounded the offening code with a BlockIf containing
                  <actinic:variable name="PageType" /> == "Brochure"
                  and no errors are reported and everything seems to work as required.

                  Thanks for the assistance.
                  Darren Guppy
                  Golf Tee Warehouse
                  Golf Tees and Golf Accessories.

                  Comment

                  Working...
                  X