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 8 of 8

Thread: rev.categories C# file

  1. #1
    zaffer is offline Member
    Join Date
    Aug 2008
    Posts
    39

    Default rev.categories C# file

    What is the name of the C# file that generates the rev.categories.xml.config file?

    I am trying to query a specific column on the category table which will then be returned as part of a css class on the menu element.

    <li>
    <xsl:attribute name="class">
    <xsl:value-of select="aspdnsf:GetMLValue(CSSClass)"/>
    </xsl:attribute>

    fields like SEName and Name work in place of CSSClass so I need to build this particular into the query that is used to generate the file.

    All help is appreciated...

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    That's actually just a standard file that exists on your site - Web\skins\Skin_1\XmlPackages\rev.categories.xml.co nfig

  3. #3
    zaffer is offline Member
    Join Date
    Aug 2008
    Posts
    39

    Default

    so there is nothing in the background that creates the query for the page? how come most of the column names that are in the category table don't return data when substituted in my xsl:attribute? SEName and Name work but categoryid which is used elsewhere on the page doesn't?

    or does this page query any other tables in the database??

    Thanks

  4. #4
    Dusty is offline Member
    Join Date
    Jun 2009
    Posts
    176

    Default

    the rev XML Packages are unique among our other XML Packages in that they use the Entity Helpers rather than a package embedded query. The entity objects themselves are somewhat contextually agnostic, so the EntityID is probably the information for which you're looking.

    Dusty
    ASPDotNetStorefront Staff

  5. #5
    zaffer is offline Member
    Join Date
    Aug 2008
    Posts
    39

    Default

    so how would I go about editing the EntityID data so that I can choose any table column to display as my css class? I see the path root/entityhelpers/category/entity but I dont have the entityhelpers folder to find this file. I do have entityhelper (no 's').

  6. #6
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    If you look at the top of the rev.categories.xml.config xmlpackage in the package tag, you'll see includeentityhelper="true". Any xmlpackage with this will include entityhelper information in the xmlpackage (you can see the entity helper xml if you set debug="true" in the package). This hierarchical data is a bit complex, as well as heavily used within the application, and is assembled in the AspDotNetStorefrontCore project in the EntityHelper and HierarchicalTableMgr classes. You'll need the source code to modify these classes, and any changes will require a recompile in Visual Studio to take effect.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  7. #7
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    we don't return ALL table fields in the entity helper data, due to their size, and for performance, but if the field is there (see George's debug hint so you can see the raw data you have to transform off of) then you can just pull it, otherwise, you may have to just add a new db query node to your xmlpackage, picking off the entitiy ID on querystring, and pulling that field out, which would then be available also in the XML doc directly of the transform.

    In other words, an XmlPackage can execute multiple queries in it if it needs to the DB.
    AspDotNetStorefront
    Shopping Cart

  8. #8
    zaffer is offline Member
    Join Date
    Aug 2008
    Posts
    39

    Default

    Ta very much for the help. the debugging let me see a number of fields I could use as a substitute to achieve what I needed.

    not perfect but it does the job at least...

    ta!