Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michael 63 posts 211 karma points
    Oct 04, 2012 @ 08:40
    Michael
    0

    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:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <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}&amp;width=648&amp;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>
Please Sign in or register to post replies

Write your reply to:

Draft