Announcement

Collapse
No announcement yet.

Page Title & Conditions

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

    #16
    Hmmm, I'm sure I had this working earlier LOL

    Will need to look at it again.

    Army Gore-tex
    Winter Climbing Mitts
    webD's Blog: Website design, SEO and other ramblings…
    Twitter LinkedIN

    If you think a post is good, rate it!

    Find the answers in the Knowledge Base | Have you read the User Guides

    Comment


      #17
      Using your new PageTitleFormat variable you could use this structure. Just insert your existing TITLE content for OLD and your new content for NEW.

      Code:
      <title>
      	<actinic:block if="%3cactinic%3avariable%20name%3d%22PageTitleFormat%22%20%2f%3e%20%3d%3d%20TRUE" >
      	     NEW 
              </actinic:block>
      	<actinic:block if="%3cactinic%3avariable%20name%3d%22PageTitleFormat%22%20%2f%3e%20%3d%3d%20FALSE" >
      	     OLD 
      	</actinic:block>
      </title>

      Comment


        #18
        No - for some reason it won't play, it doesn't seem to make any difference if the variable is set to true or false it will display it's own thing. Working on the last post I tried this:

        Code:
        <title>
        	<actinic:block if="%3cactinic%3avariable%20name%3d%22PageTitleFormat%22%20%2f%3e%20%3d%3d%20TRUE" >
        	     <actinic:variable name="PageTitle" /> | <actinic:variable name="CompanyName" /> 
                </actinic:block>
        	<actinic:block if="%3cactinic%3avariable%20name%3d%22PageTitleFormat%22%20%2f%3e%20%3d%3d%20FALSE" >
        	     <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Section%27"><actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200"><actinic:variable name="SectionName" /> :: <actinic:variable name="PageTitle" /> </actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%200"><actinic:variable name="CompanyName" /></actinic:block></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Brochure%27"><actinic:variable name="BrochureName" />, <actinic:variable name="CompanyName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%27Section%27%29%20AND%20%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%27Brochure%27%29" ><actinic:variable name="PageType" />, <actinic:variable name="CompanyName" /></actinic:block>
        	</actinic:block>
        </title>
        but is displays Product Name :: Page title.

        Thank you both so much for your time and effort, it is really appreciated. Little things like this get under my skin and irritate!!... I think it may be easier to give up and put aside some time to change all of the page titles to how I want them and then make the universal change back to page title!

        Lucy

        Comment


          #19
          I tested your code and it works exactly as expected. Leaving NEW and OLD in may help you find the problem:
          Code:
          <title>
          	<actinic:block if="%3cactinic%3avariable%20name%3d%22PageTitleFormat%22%20%2f%3e%20%3d%3d%20TRUE" > NEW
          	     <actinic:variable name="PageTitle" /> | <actinic:variable name="CompanyName" /> 
                  </actinic:block>
          	<actinic:block if="%3cactinic%3avariable%20name%3d%22PageTitleFormat%22%20%2f%3e%20%3d%3d%20FALSE" > OLD
          	     <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Section%27"><actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200"><actinic:variable name="SectionName" /> :: <actinic:variable name="PageTitle" /> </actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%200"><actinic:variable name="CompanyName" /></actinic:block></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Brochure%27"><actinic:variable name="BrochureName" />, <actinic:variable name="CompanyName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%27Section%27%29%20AND%20%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%27Brochure%27%29" ><actinic:variable name="PageType" />, <actinic:variable name="CompanyName" /></actinic:block>
          	</actinic:block>
          </title>

          Comment


            #20
            I feel like an idiot!

            I cannot get the page title to change, it is always set to OLD regardless of whether the variable is set to true or false... I am now thinking it is probably the set-up of my variable, I have attached an image, could you possibly take a look?
            Attached Files

            Comment


              #21
              Set at product level not section level?

              Comment


                #22
                It's working... yay...thank you, thank you, thank you...

                Comment


                  #23
                  LOL np, .

                  Comment


                    #24
                    Clean that lipstick of your cheeks Lee!

                    Comment

                    Working...
                    X