Announcement

Collapse
No announcement yet.

page name

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

    page name

    i am using variable pagename to display the page name in a box with an image abouve on every page. this works fine.
    i am also usining pagename.gif to display different images for every page. this is kind of fine exept: when the page name is a single word ie: home , i simply name image home.
    but if for eg the page name is terms and conditions i cant find a suitable way to name the image.
    tried terms_and_conditions and termsandconditions.
    what is the variable replacing the spaces in the page name with.
    Simbo thanks you in advance again

    Location: Jersey Channel Islands

    #2
    Is this for you or a client now you have set up shop as a designer http://myactinic.co.uk/index.html

    Comment


      #3
      not quite there yet mate

      working on it though.. its for the box top of left coll...

      sorry its pagetitle im using as the variable not page name..
      Last edited by simbo; 30-Dec-2007, 07:25 PM. Reason: incorrect info
      Simbo thanks you in advance again

      Location: Jersey Channel Islands

      Comment


        #4
        malcom

        id appreciate it if you would remove the url until my work is finished.
        Simbo thanks you in advance again

        Location: Jersey Channel Islands

        Comment


          #5
          nightmare with this

          must the 9 pages eg: sitemap, terms etc.. take the outer layout that the store uses. its making my head bang trying to find a variable i can use without it passing through to these pages, thus causing error: "sectionimagename used out of context 9 times"
          is ther just no way a different outer layout can be applied to sitemap etc..
          Simbo thanks you in advance again

          Location: Jersey Channel Islands

          Comment


            #6
            whatever you're doing with the variable, Gary, can't you wrap it in a blockif for PageType ==Section or something similar (not got Actinic open to test or find out correct condition at the minute) to prevent the out of context errors?
            Tracey

            Comment


              #7
              found example of what I mean...if this helps
              http://community.actinic.com/showthr...getype+section
              Tracey

              Comment


                #8
                thanks

                working on an exprssion now.. it seems to me at first thouh that eg: site map is classed as a section level. its this and the other 8 pages i wish to block the html snippit from whilst keeping it in the product top level sections..
                Simbo thanks you in advance again

                Location: Jersey Channel Islands

                Comment


                  #9
                  cant find one

                  what attribute does eg: sitemap have that my product sections dont that i can use to block. or vice versa..
                  Simbo thanks you in advance again

                  Location: Jersey Channel Islands

                  Comment


                    #10
                    not quite intuative is it

                    <actinic:variable name="PageType" <actinic:variable name="SectionHasVisibleProduct" /> == false

                    does not block sitemap or infopages etc... hmmmm
                    Simbo thanks you in advance again

                    Location: Jersey Channel Islands

                    Comment


                      #11
                      Use this for guidance:
                      Code:
                      <actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22%29%20OR%20%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Brochure%22%29" >
                      <actinic:block php="true">echo strtolower(str_replace(' ', '_', '<actinic:variable name="PageTitle" encoding="perl" selectable="false" />'));</actinic:block>.gif	
                      </actinic:block>
                      <actinic:block if="%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Section%22%29%20AND%20%28%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%22Brochure%22%29" >
                      <actinic:block php="true">echo strtolower(str_replace(' ', '_', '<actinic:variable name="PageType" encoding="perl" selectable="false" />'));</actinic:block>.gif	
                      </actinic:block>
                      I've also added code to convert eveything to lower case and replace spaces with underlines.
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                        #12
                        thanks so much

                        i would have never got there...



                        thanks again that is going to work wonderfully...
                        Simbo thanks you in advance again

                        Location: Jersey Channel Islands

                        Comment

                        Working...
                        X