Could someone explain how I might go about adding a custom built page node to the vertical category menu.
I have a custom page that I'd like to add a link under one of my Categories for but I don't know the best way to do this.
Any ideas?
Could someone explain how I might go about adding a custom built page node to the vertical category menu.
I have a custom page that I'd like to add a link under one of my Categories for but I don't know the best way to do this.
Any ideas?
It's going to take some customization to link to that in the vertical menus, those are designed to just pull from entities. Depending on what's on your custom page, it might actually be easiest to just create a category with the name of whatever you wanted to name that link, and put the content of the custom page in the Description field. If you don't map any products to that category, it'll just be a content page.
Thanks for the reply ( I might try that if I can't do it some other way)-
Where's what I'm trying to do now (but I ran into a weird result)
1) I added a quicksearch Category to the tree in the admin
2)In the xml package I am trying to inject that link into the name but for some reason it's not letting me do this. When I hover the name on the page it still shows the link as being c-103-quick-search.aspx -- instead of SearchFilter.aspx, and when you click the name it just reloads the page.
Code:<xsl:template match="SubCategory"> <p align="left"> • <!--<b>--> <a style="font-size:10pt;"> <xsl:attribute name="href"> <xsl:choose> <xsl:when test="SEName='quick-search'"> <xsl:value-of select="SearchFilter.aspx" /> </xsl:when> <xsl:when test="SEName!='quick-search'"> <xsl:value-of select="aspdnsf:CategoryLink(CategoryID,SEName,0)" /> </xsl:when> </xsl:choose> </xsl:attribute> <xsl:value-of select="Name" disable-output-escaping="yes" /> </a> <!--</b>--> </p> </xsl:template>
At first glance it looks like you might need single quotes around search.aspx so that it is recognized as a string.
You could probably also replace
<xsl:value-of select="SearchFilter.aspx" />
with
<xsl:text>SearchFilter.aspx</xsl:text>
And if the link is still to the category page then it looks like your match on sename is not working properly. Perhaps the case is wrong?
It was the single quote.
Thanks for the catch. That' got it working for the category on the page...
Now all I need to do is figure out how/where to hack the vertical list link.
Answer my own idea -->
Vertical menu hack was done in the rev.category.xml.config file
Last edited by UNLGroup; 04-20-2010 at 01:14 PM.