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

Thread: Setting the Category's xmlpackage when Mapping XML

  1. #1
    UNLGroup is offline Senior Member
    Join Date
    Dec 2007
    Posts
    144

    Default Setting the Category's xmlpackage when Mapping XML

    I would like to set Summer and Graduate to run a Sample.xml.config package instead of the default grid.xml.config package

    I see the Display Xmlpackage and have that set to product.kit2.xml.config (which is how it should be), but that appears to work on the product level.

    Would changing the Category xmlpackage be done on the element below?

    I have this in my XSLT file
    Code:
    - 
    ...
    ...
    <xsl:element name="Entity">
      <xsl:attribute name="EntityType">Category</xsl:attribute> 
    - <xsl:attribute name="XPath">
      <xsl:value-of select="concat('Summer/Graduate/', CourseArea)" /> 
      </xsl:attribute>
      </xsl:element>
    ...
    ...

    Thanks for your thoughts.

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

    Default

    I'm not sure I understand the question - you just need to know how to tell a category which XML package to use? You can do that through the admin site, with the Display Format XML Package attribute, just like products.

  3. #3
    UNLGroup is offline Senior Member
    Join Date
    Dec 2007
    Posts
    144

    Default

    Thanks fr the reply.
    I do understand that.

    --I was just wondering if there was a way to set the Category's Package when importing the products.

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

    Default

    If you're using WSI you can do that with the Display node under the entity:

    Code:
    <Display>
    			<XmlPackage></XmlPackage>
    			<ColWidth></ColWidth>
    			<PageSize></PageSize>
    			<SkinID></SkinID>
    			<TemplateName></TemplateName>
    		</Display>
    In the older XML import method, you would use the XmlPackage node.

    Code:
    <Category>
    	<Name>Category 1</Name>
    	<ParentCategory></ParentCategory>
    	<Summary></Summary>
    	<Description></Description>
    	<SEKeywords></SEKeywords>
    	<SEDescription></SEDescription>
    	<SETitle></SETitle>
    	<XmlPackage></XmlPackage>
    	<ColWidth>4</ColWidth>
    	<DisplayOrder>1</DisplayOrder>
    	<Published>1</Published>
    	<ImageFilenameOverride></ImageFilenameOverride>
    </Category>