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: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 class="sub-entity-grid">
						<div class="row sub-entity-row">	
						<h2>Search by Brand</h2>
					<xsl:apply-templates select="$CurrentEntity/Entity" mode="grid" />



in General by (120 points)

1 Answer

0 votes

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



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.



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




by (260 points)