I'm not sure if what I'm trying to do is possible, but I hope it is.

What I'm wanting is to have a category page divide up the subcategories based on the titles. Basically loop through every title of the subcategories and put it in the correct div.

For example:

Search By Roast

-- Light Roast  -- Medium Roast -- Dark Roast

 

Search By Brand

--Starbucks --Folgers --Krispy Kreme

 

This is what I have so far in the entity.responsive.xml.config page. Right now its looking at all the titles but putting them all under Search By Roast, as it sees that Roast is in one of the titles. Any help or guidance would be much appreciated!

<xsl:when test="aspdnsf:AppConfigBool('ShowSubCatsInGrid') = 'true'">

	<xsl:variable name="Titles">			
		<xsl:for-each select="$CurrentEntity/Entity/Name">
			<xsl:value-of select="." disable-output-escaping="yes" />
		</xsl:for-each>
	</xsl:variable>
							
			<xsl:choose>
				<xsl:when test="contains($Titles,'Roast')">	
					<div class="sub-entity-grid">
						<div class="row sub-entity-row">
							<h2>Search by Roast</h2>
						<xsl:apply-templates select="$CurrentEntity/Entity" mode="grid" />
						</div>
					</div>
				</xsl:when>

				<xsl:otherwise>	
					<div class="sub-entity-grid">
						<div class="row sub-entity-row">	
						<h2>Search by Brand</h2>
					<xsl:apply-templates select="$CurrentEntity/Entity" mode="grid" />
						</div>
					</div>
				</xsl:otherwise>
		</xsl:choose>
						
	</xsl:when>

 

 

in General by (120 points)

1 Answer

0 votes

One possible solution might be to purchase and utilize the Guided Navigation add-on: 

http://www.aspdotnetstorefront.com/p-1025-guided-navigation.aspx

 

Vibe is another possible add-on springs to mind, although it may require a layout other than the specific one you are attempting to achieve.

http://www.vibecommerce.com/add-ons/p-11-vibe-trib-attributes-filtering-sort-search.aspx

 

Also, if you have not already reviewed it, some documentation toward manually editing the XSL can be found at:

http://manual.aspdotnetstorefront.com/p-157-xml-packages.aspx

 

HTH.

by (260 points)
...