Announcement

Collapse
No announcement yet.

Prev Next Section links no CGI

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

    Prev Next Section links no CGI

    I require to remove the pass through the cgi when using the previous and next section links (AUG pg16), I belive this can be done by editing the DESIGN|TEXT but can't find the correct ID and don't know how to remove the % markup without causing errors.
    Thanks.
    Justin Rowe
    Shiver

    #2
    Can any one help us with this?
    Justin Rowe
    Shiver

    Comment


      #3
      Hi Justin,

      Just been checking with this. I'm afraid when you are using the variable NETQUOTEVAR:PREV_SECTION_URL or NETQUOTEVAR:NEXT_SECTION_URL, it will alway bring up a cgi link, rather than a plain link. This seems to be hardcoded in the application.

      There is no way of changing this currently.

      Kind Regards
      Nadeem Rasool
      SellerDeck Development

      Comment


        #4
        You could use JavaScript to clean up the link.
        Code:
        <script language=JavaScript>
        <!--
        var nexturl = 'NETQUOTEVAR:NEXT_SECTION_URL';
        nexturl = nexturl.replace(/cgi-bin\/.*SECTIONID=/i,"acatalog/");
        nexturl = nexturl.replace(/&NOLOGIN=1/,"");
        document.write('<a href="' + nexturl + '">Next</a>');
        //-->
        </script>
        This lump generates a link called "Next" that points directly to the page. Just paste it in where you want the "Next" link to appear. You'll have to make another copy for the PREV but that should be obvious.

        You might have to amend this slightly if your acatalog isn't directly of your site base.

        And spiders won't want to follow this link so make sure you've got other navigation that will take search engines where you want them to go.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks Norman I'll give it a bash.

          Nadeem,
          I'm a little supprised there is still no real fix to the sub section and limited number of products per page issue, I belive it is Actinics biggest drawback at present.
          Justin Rowe
          Shiver

          Comment


            #6
            Here's the code I used, It works great, Thanks again Norman.

            <table border="0" cellspacing="0" cellpadding="0" align="center" class="prevnext-bg">
            <tr>
            <td><script language=JavaScript>
            <!--
            var nexturl = 'NETQUOTEVAR:PREV_SECTION_URL';
            nexturl = nexturl.replace(/cgi-bin\/.*SECTIONID=/i,"acatalog/");
            nexturl = nexturl.replace(/&NOLOGIN=1/,"");
            document.write('<a href="' + nexturl + '">CUSTOMVAR:PREVIMG NETQUOTEVAR:PREV_SECTION_NAME</a>');
            //-->
            </script></td>
            <td>&nbsp;-&nbsp;</td>
            <td><script language=JavaScript>
            <!--
            var nexturl = 'NETQUOTEVAR:NEXT_SECTION_URL';
            nexturl = nexturl.replace(/cgi-bin\/.*SECTIONID=/i,"acatalog/");
            nexturl = nexturl.replace(/&NOLOGIN=1/,"");
            document.write('<a href="' + nexturl + '">NETQUOTEVAR:NEXT_SECTION_NAME CUSTOMVAR:NEXTIMG</a>');
            //-->
            </script></td>
            </tr>
            </table>
            Justin Rowe
            Shiver

            Comment

            Working...
            X