Announcement

Collapse
No announcement yet.

linking to brochure page

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

    linking to brochure page

    Hi all
    I have created a brochure page titled delivery.html. It contains several fragments and each fragment uses a different anchor (eg. cost, returns etc)
    I want to refer to the anchors, from my footer section.
    I have replaced the standard acatalog directory with a directory called gifts.
    Ideally, I do not want to hardcode the full pathname as it will therefore never work properly when in test mode.
    .
    So, how do I code the href command to refer correctly on both the home page and any other section/brochure page.
    .
    for example, coded in my footer page:-
    href="delivery-information.html#cost"
    On all but the home page this links correctly to:-
    "http://www.domainname.co.uk/gifts/delivery-information.html#cost"
    when in test mode - "http://www.domainname.co.uk/gifts/test/gifts/delivery-information.html#cost"
    BUT
    On the home page this builds the link incorrectly as:-
    "http://www.domainname.co.uk/delivery-information.html#cost"
    when in test mode - "http://www.domainname.co.uk/gifts/test/delivery-information.html#cost"
    .
    Do I need to use a different href command depending on if its the home or the rest or am I missing something?

    #2
    You can use a variable <actinic:variable name="CatalogURL" />
    Peblaco

    Comment


      #3
      Brilliant...thanks so much. im surprised you understood from my ramblings.

      Comment


        #4
        Can I be cheeky and ask another related question?
        .
        Across all pages I also want to link to:-
        "www.domainname.co.uk/blog/feed" and in test, this should obviously be "www.domainname.co.uk/gifts/test/blog/feed".
        How can I code this so it works on both the home page and the rest?
        .
        I have tried WebSiteURL but this defaults to "www.domainname.co.uk" so wont work on test.
        Thanks

        Comment


          #5
          Wasn't the answer in post #2. Try:

          href="<actinic:variable name="CatalogURL" />/blog/feed"

          There's also variable CatalogHomeURL to try.

          Try Help / Variable Reference Guide and search for "URL" and you'll find many other variables that point to bits of the store.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Thanks Norman
            Ive had a look thru help, AUG and KB but I think it might have answered my question...I dont think there is a variable that points to "www.domain.co.uk" when the site is live and "www.domain.co.uk/acatalog/test" when in test.
            .
            Happy to be proved wrong

            Comment


              #7
              You could use a blockif to see when the site is in test mode and show the appropriate variables/links.
              Peblaco

              Comment


                #8
                Thanks Louise....all good now.

                Comment

                Working...
                X