Announcement

Collapse
No announcement yet.

Customer Acccount Links

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

    Customer Acccount Links

    Hi guys,

    I have hard coded the links on a couple of pages however I need Actinic to display one link if logged in and another if logged out.

    Code:
    If logged in...
    <a href="http://www.clientel-testsite.co.uk/cgi-bin/ss000003.pl?SECTIONID=Non_Slip_Rulers.html&NOLOGIN=1">All Rulers</a>
    
    If logged out..
    
    <a href="http://www.clientel-testsite.co.uk/acatalog/Non_Slip_Rulers.html">All Rulers</a>
    Anyone know of an easier way to do this or the block ifs to use?

    Many thanks in advance

    #2
    Tracey, copy the method that already does this on your site. Select an area in the design tab and note how it shows if logged in and copy that. It is much better to directly copy what currently happens as you know that works IMO. Backup before you start playing though.

    I think there are a few articles in the AUG about using these tags cleverly also, which you may find useful to read.

    Comment


      #3
      Not displayed if logged in

      Thanks for the quick response Lee.

      I have found out from the user guide the logged in code..

      Code:
      <Actinic:NOTINB2B><!--</Actinic:NOTINB2B><a href="http://www.clientel-testsite.co.uk/cgi-bin/ss000003.pl?SECTIONID=Non_Slip_Rulers.html&NOLOGIN=1">All Rulers</a> <Actinic:NOTINB2B>--></Actinic:NOTINB2B>
      
      <a href="http://www.clientel-testsite.co.uk/acatalog/Non_Slip_Rulers.html">All Rulers</a>
      Works perfectly, just need the tags to wrap around the second link which displays this if logged out.

      Thanks

      Comment


        #4
        You can simply use the <Actinic:NOTINB2B> text </Actinic:NOTINB2B> tags around the text you want displayed when logged out.

        What the tags do in the example you posted above is put in the commenting out tags for non logged in customers.

        Regards,
        Bruce King
        SellerDeck

        Comment

        Working...
        X