Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 6 of 6

Thread: leftnav default sub categories

  1. #1
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation leftnav default sub categories

    Hi.

    I would like to expand all subcategories of my leftnav menu with out need of clicking main category.

    could you please let me know what and where should i make changes.

    it should be like tree view.

    I wand to show all subcategories.

    Please respond as early as possible.

  2. #2
    ppardee is offline Junior Member
    Join Date
    Jun 2009
    Posts
    13

    Default

    I'm using ML/DNN so I don't know if it is different for you, but in your XMLPackages folder you should have menu.categories.xml.config (or rev.categories.xml.config for non-DNN, I think.)

    In the Entity template, you have a section that will say

    <xsl:if test="count(child::Entity)&gt;0 and (EntityID = /root/QueryString/categoryid or descendant::Entity/EntityID = /root/QueryString/categoryid)">
    <ul style="color:black">
    <xsl:apply-templates select="Entity">
    <xsl:with-param name="prefix" select="$prefix"/>
    </xsl:apply-templates>
    </ul>
    </xsl:if>


    Comment out the red line and replace it with

    <xsl:if test="count(child::Entity)&gt;0">

    This worked for me, but YMMV if you are using something other than ML/DNN

    Hope this helps!

    Paul

  3. #3
    MarkC is offline Developer
    Join Date
    Aug 2006
    Posts
    166

    Default

    For the rev xml packages, the default behavior is to only collapse if it's the currently selected category.

    You can just go to the skins xmlpackages folder:
    {web folder}skins/skin_{id}/xmlpackages
    and modify rev.categories.xml.config

    scroll down to the bottom and change
    C#/VB.NET Code:
    <xsl:if test="count(child::Entity)&gt;0 and (EntityID = $CategoryID or descendant::Entity/EntityID = $CategoryID)"
    to

    C#/VB.NET Code:
    <xsl:if test="count(child::Entity)&gt;0 "
    basically just removes the parent checking, you may also need to do this to the manufacturer and section xml package if you use them, just different parameter name.

  4. #4
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Default Thanks

    It works fine

  5. #5
    chazandchaz is offline Member
    Join Date
    Jul 2006
    Posts
    70

    Smile

    Anyone know how this is done in version 9?

    thanks in advance.

    chaz.

  6. #6
    Saad is offline Junior Member
    Join Date
    Oct 2011
    Posts
    1

    Default

    Hi, i am using Multistore 9,
    i need the same thing for sub categories but its not working.

    Please help

    Thanks