Announcement

Collapse
No announcement yet.

trouble using 'links to previous & next section' from AUG

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

    trouble using 'links to previous & next section' from AUG

    Hi all, to get some 'previous and next section' links going on my pages I've copied and pasted the following code straight from the AUG:

    <div style="float: left;">
    <actinic:variable name="PrevNextSectionLink" value="Link to Previous Section" />
    </div>
    <div style="float: right;">
    <actinic:variable name="PrevNextSectionLink" value="Link to Next Section" />
    <div style="float: right;">



    ... and the text links appear as they should on the 'section' and 'product' pages (depending where I insert the div tag) - but upon clicking get the 'file not found' page.

    In preview mode I'm aware that any links/images that are clickable start with the prefix 'P'. So 'P_titleofnextpage.html' is what i'd expect to see when hovering on my newly created links - however there is no 'P_' prefix - just the url of the next or previous page?

    Hence when I export or import snapshots i get messages such as: "there are 102 coding errors" as my links are obviously broken.

    Can anyone give me a pointer as to where I might be going wrong. I've followed the AUG to the letter best I can.

    Thanks. Sean

    #2
    Double click on the coding error message, it should take you to the problem.

    Comment


      #3
      heres one of my coding error messages:

      Variable'SectionPageNamePrev' is used out of context (2 times)
      Variable'SectionNamePrev'is used out of context (2 times)
      Variable'SectionPageNameNext' is used out of context (2 times)
      Variable'SectionNameNext' is used out of context (2 times)


      ..presumably I didn't have to create any variables to generate 'previous and next links' from the AUG as I thought it was a straight copy and paste job?

      Comment


        #4
        Looks like you've done it either incorrectly, in the wrong place or both. Revert to your snapshot before you did this and try again. It will be quicker than trying to solve the problem. Pay attention to where it says to put them and copy it exactly as it says.

        Comment


          #5
          Where ever I place the code on the my contents page there seems to be no generation of the 'P_' prefix in the hyper link to the next/previous page in preview mode. Is anyone here using this code without issues in preview mode - and if so are they getting the 'P_' generated by actinic?
          -----------------------------
          Code from the Aug:

          <div style="float: left;">
          <actinic:variable name="PrevNextSectionLink" value="Link to Previous Section" />
          </div>
          <div style="float: right;">
          <actinic:variable name="PrevNextSectionLink" value="Link to Next Section" />
          <div style="float: right;">

          ------------------------------

          Comment


            #6
            Its feasible that it doesn't work in preview mode i guess, why not upload in test mode and try it online?

            Comment


              #7
              Ahah!

              duh! yep it's fine online - I did try and upload yesterday but there was an abrupt halt when I got to the .pl files and I ilogically put it down to my bad links (which are nothing to do with the perl scripts I think).

              Thats sorted at least - though it's my 2nd add on that doesn't work in preview mode . I kind of hoped that would have been stated in the AUG - so unless someone reading this knows different I'll accept that's the way it's supposed to work. cheers Lee

              Comment

              Working...
              X