Announcement

Collapse
No announcement yet.

Section Link construct question

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

    Section Link construct question

    I can't get my head around this piece of code from most places where Section Links are generated :


    Code:
    <a href="
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" >
    <actinic:variable name="SectionPageName" />
    </actinic:block>
    <actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" >
    <actinic:variable name="SectionURL" />
    </actinic:block>">
    <actinic:variable name="SectionName" /></a>
    I can't figure out why the two different variables are used :

    SectionPageName
    SectionURL

    One is the actual Section Page Name and the other is generated through the CGI bin.

    To use SectionPageName the blockif is effectively

    Code:
    "if the Login Page is suppressed and Unregistered Customers are not allowed"
    I read that as "only logged in customers and only if the login page is suppressed"

    To use the SectionURL the blockif is effectively

    Code:
    "if the Login Page is not suppressed OR Unregistered Customers are allowed"
    I read that as "any registered customer if they've had to login OR if unregistered customers are allowed"


    So, does this mean that to use the SectionPageName the site has to be set up so that customers have to be registered?

    And SectionURL will be used if unregistered customers are allowed to shop (which is the vast majority of sites I would guess)


    I'm not sure where I'm going with this..... I just want to understand if I can use SectionPageName where a site has unregistered customers.... or why I can't.

    Or, indeed, if I've understood that code correctly.

    Elysium:Online - Official Accredited SellerDeck Partner
    SellerDeck Design, Build, Hosting & Promotion
    Based in rural Northants

    #2
    SectionPageName i.e. file.html Blockif IsLoginPageSuppressed AND UnregCustomersAreNotAllowed blocks link if user is logged in. SectionURL i.e. cgi-bin link Blockif IsLoginPageSuppressed = false is when logged in or a registered customer.
    Peblaco

    Comment


      #3
      Thanks, Louise, for the full explanation. My reasoning just didn't feel right!

      It makes sense - I was just confused because I didn't fully understand what IsLoginPageSuppressed does and its implications - and that screwed the rest of my logic!!
      Elysium:Online - Official Accredited SellerDeck Partner
      SellerDeck Design, Build, Hosting & Promotion
      Based in rural Northants

      Comment

      Working...
      X