Not sure if this solution has been supplied before but I have come up with a way to do this. I have edited the Mini Best Seller Layout to include the following:
<actinic:block if="%3cactinic%3avariable%20name%3d%22ProductLinkInfo%22%20%2f%3e%20%3d%3d%20%22%22" >
<a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable name="ProductReference" />&NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e" >&SHOP=<actinic:variable name="ShopID" /></actinic:block>">find out more</a></p>
</actinic:block>
<actinic:block if="%3cactinic%3avariable%20name%3d%22ProductLinkInfo%22%20%2f%3e%20%21%3d%20%22%22" >
<a href="<actinic:variable name="ProductLinkInfo" />">Find out more</a>
</actinic:block>
Basically what this does is to point the link to the URL specified in the Link tab on the product. In my case, we have section per product so I just put the section URL in the Link tab and removed the link from the main product layout so it's not linking back to itself.
You could also create a variable for the product which would replace Productlinkinfo in the above and then set the URL for the best seller link from each product.
Seems to work just fine. Blocks basically say to do the original action if the Link URL box on the product is empty or to use the HTML link if there is something in there.
<actinic:block if="%3cactinic%3avariable%20name%3d%22ProductLinkInfo%22%20%2f%3e%20%3d%3d%20%22%22" >
<a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<actinic:variable name="ProductReference" />&NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e" >&SHOP=<actinic:variable name="ShopID" /></actinic:block>">find out more</a></p>
</actinic:block>
<actinic:block if="%3cactinic%3avariable%20name%3d%22ProductLinkInfo%22%20%2f%3e%20%21%3d%20%22%22" >
<a href="<actinic:variable name="ProductLinkInfo" />">Find out more</a>
</actinic:block>
Basically what this does is to point the link to the URL specified in the Link tab on the product. In my case, we have section per product so I just put the section URL in the Link tab and removed the link from the main product layout so it's not linking back to itself.
You could also create a variable for the product which would replace Productlinkinfo in the above and then set the URL for the best seller link from each product.
Seems to work just fine. Blocks basically say to do the original action if the Link URL box on the product is empty or to use the HTML link if there is something in there.
Comment