I can't get my head around this piece of code from most places where Section Links are generated :
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
I read that as "only logged in customers and only if the login page is suppressed"
To use the SectionURL the blockif is effectively
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.
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>
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"
To use the SectionURL the blockif is effectively
Code:
"if the Login Page is not suppressed OR 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.
Comment