I think this may have been touched on elsewhere???
I have a code to display a canonical link on each page:
Despite my best efforts Actinic sometimes throws up an error:
If I click on a brochure page in content tree the error goes, and stays gone when going back to section pages. It sometimes throws up the error when uploading the site, sometimes not.
I would have thought wrapping the brochure related blockifs in a
blockif would do it but as you see it doesn't.
Personally I would live with it but it is not good form to hand a site to a client that pops errors up!
Thanks people!
http://www.graphicz.eu.com/site1/
I have a code to display a canonical link on each page:
Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Brochure%27" > <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e" > <link rel="canonical" href="<actinic:variable name="WebURL" />" /> </actinic:block> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Brochure%27" > <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e%20%3d%3d%20false"> <link rel="canonical" href="<actinic:variable name="CatalogURL" /><actinic:variable name="BrochurePageURL" />" /> </actinic:block> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Section%22" > <link rel="canonical" href="<actinic:variable name="CatalogURL" /><actinic:variable name="SectionPageName" />" /> </actinic:block>
Error in condition (The 'IsBrochureHomePage' variable has been placed within the 'jcpage' layout but it won't work there. Click here to go to the code.).
I would have thought wrapping the brochure related blockifs in a
Code:
<actinic:variable name="PageType" /> == 'Brochure'
Personally I would live with it but it is not good form to hand a site to a client that pops errors up!
Thanks people!
http://www.graphicz.eu.com/site1/
Comment