Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi folks
I am currently working with the uWebshop package. I installed the standard shop and have modified it from there. My structure looks like this:
Webpage:-Subpage-Subpageand so on..
uWebshop-Catalogue--Category---Product---extra custom subpage here---Productand son on..
My question is: Why I am not able to get those extra pages from the current category? xPath is not my strongest side. Any pointers would be sweet :)
My code looks like this:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:SSWS.Navigation="urn:SSWS.Navigation" xmlns:SSWS.Node="urn:SSWS.Node" xmlns:SSWS.Catalog="urn:SSWS.Catalog" xmlns:SSWS.Orders="urn:SSWS.Orders" xmlns:PS.XSLTsearch="urn:PS.XSLTsearch" exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets SSWS.Navigation SSWS.Node SSWS.Catalog SSWS.Orders PS.XSLTsearch "><xsl:output method="xml" omit-xml-declaration="yes" /><xsl:param name="currentPage"/><xsl:variable name="currentCategoryUrlName" select="umbraco.library:RequestQueryString('category')"/><xsl:variable name="currentCategory" select="SSWS.Catalog:GetCategoryFromUrlName($currentCategoryUrlName)"/><xsl:template match="/"><!-- Faktasider START --> <div class="kategoriTabMenu"> <div class="catDiv1"> <ul id="catTabsMenu" class="catTabsMenu"> <!--<xsl:for-each select="umbraco.library:GetXmlAll()//FaktaSide">--> <!--<xsl:for-each select="$currentCategory">--> <xsl:for-each select="$currentCategory/descendant-or-self::* [@isDoc and name() = 'FaktaSide']"> <li class="active"> <a href="#{@id}"> <xsl:value-of select="@nodeName"/> </a> </li> </xsl:for-each> </ul> </div> <div class="catDiv2"> <xsl:for-each select="umbraco.library:GetXmlAll()//FaktaSide"> <xsl:variable name="media" select="umbraco.library:GetMedia(customFaktaBaggrundsBillede, false())" /> <div id="{@id}" class="catTabsIndhold"> <div class="catBgBillede"> <img alt="{$media/@nodeName}" src="/ImageGen.ashx?image={$media/umbracoFile}&width=648&constrain=true" /> </div> <div class="catTabsFrame"> <img src="/media/images/frame.png" /> </div> <div class="catTabsOverskrift"> <xsl:value-of select="$currentCategory/title"/> </div> <div class="catTabsTekst"> <xsl:value-of select="customFaktaSideIndhold" disable-output-escaping="yes"/> </div> </div> </xsl:for-each> </div> </div><!-- Faktasider END --> </xsl:template></xsl:stylesheet>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
uWebshop category extra custom subpage
Hi folks
I am currently working with the uWebshop package. I installed the standard shop and have modified it from there. My structure looks like this:
Webpage:
-Subpage
-Subpage
and so on..
uWebshop
-Catalogue
--Category
---Product
---extra custom subpage here
---Product
and son on..
My question is: Why I am not able to get those extra pages from the current category? xPath is not my strongest side. Any pointers would be sweet :)
My code looks like this:
is working on a reply...