Ok,
I know this might look a bit ugly but it works for me.
I had a look on the community and couldn't find anything similar so i had to hack around myself, (if there something or there's something better just post a link on this thread).
Since I've been asking for help on the community recently I thought I should share so i can feel warm and cosy inside.
I needed to create a sitemp that would link to my generated extended info pages but also have them nesting under the correct section level.
The code below can be used to replace the standard sitemap in an Actinic site if you use the extended info pages for the single product per page method.
IMPORTANT - THIS ONLY WORKS IF YOU HAVE A SINGLE LEVEL SECTION LIST (otherwise you'll have to edit the code to accommodate another level/sub section).
And here the code:
Obviously you can format using css to your requirments.
Now someone might point a flaw in my code or possible loop but my head hurts now and all I know is that server side it produces a perfectly clean set of nested lists for me. And if someone else finds it handy then that's cool.
Enjoy
Lee
I know this might look a bit ugly but it works for me.
I had a look on the community and couldn't find anything similar so i had to hack around myself, (if there something or there's something better just post a link on this thread).
Since I've been asking for help on the community recently I thought I should share so i can feel warm and cosy inside.
I needed to create a sitemp that would link to my generated extended info pages but also have them nesting under the correct section level.
The code below can be used to replace the standard sitemap in an Actinic site if you use the extended info pages for the single product per page method.
IMPORTANT - THIS ONLY WORKS IF YOU HAVE A SINGLE LEVEL SECTION LIST (otherwise you'll have to edit the code to accommodate another level/sub section).
And here the code:
<h3>Full Catalogue</h3>
<ul>
<actinic:block type="EntireSectionList" >
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%201" >
<li><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a><ul>
<actinic:block type="ProductList" >
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPopUpPageGenerated%22%20%2f%3e" >
<li><a href="<actinic:variable name="ExtendedInfoPageName" />"><Actinic:Variable Name="ProductName"/></a></li>
</actinic:block>
</actinic:block>
</actinic:block>
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionNameNext%22%20%2f%3e" >
</li>
</actinic:block>
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionNamePrev%22%20%2f%3e%20%21%3d%20%22%22" >
</ul></li>
</actinic:block>
</actinic:block>
</ul>
<!-- the below adds a full brochure list with customer login. If you don't want it, then get ride from here down -->
<br />
<h3>Other Pages</h3>
<ul>
<li><a href="<actinic:variable name="WebSiteURL" />">Home</a></li>
<li><a href="<actinic:variable name="LoginPageURL" />">Customer login</a></li>
<actinic:block type="BrochurePagesList" >
<actinic:block if="%3cactinic%3avariable%20name%3d%22BrochurePageID%22%20%2f%3e%20%21%3d%203" >
<li><a href="<actinic:variable name="BrochurePageURL" />"><actinic:variable name="BrochureName" /></a></li>
</actinic:block>
</actinic:block>
</ul>
<ul>
<actinic:block type="EntireSectionList" >
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%201" >
<li><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a><ul>
<actinic:block type="ProductList" >
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsPopUpPageGenerated%22%20%2f%3e" >
<li><a href="<actinic:variable name="ExtendedInfoPageName" />"><Actinic:Variable Name="ProductName"/></a></li>
</actinic:block>
</actinic:block>
</actinic:block>
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionNameNext%22%20%2f%3e" >
</li>
</actinic:block>
<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionNamePrev%22%20%2f%3e%20%21%3d%20%22%22" >
</ul></li>
</actinic:block>
</actinic:block>
</ul>
<!-- the below adds a full brochure list with customer login. If you don't want it, then get ride from here down -->
<br />
<h3>Other Pages</h3>
<ul>
<li><a href="<actinic:variable name="WebSiteURL" />">Home</a></li>
<li><a href="<actinic:variable name="LoginPageURL" />">Customer login</a></li>
<actinic:block type="BrochurePagesList" >
<actinic:block if="%3cactinic%3avariable%20name%3d%22BrochurePageID%22%20%2f%3e%20%21%3d%203" >
<li><a href="<actinic:variable name="BrochurePageURL" />"><actinic:variable name="BrochureName" /></a></li>
</actinic:block>
</actinic:block>
</ul>
Now someone might point a flaw in my code or possible loop but my head hurts now and all I know is that server side it produces a perfectly clean set of nested lists for me. And if someone else finds it handy then that's cool.
Enjoy
Lee
Comment