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: Help needed to changing ENTITY.GRID.XML.CONFIG

  1. #1
    fsantos is offline Senior Member
    Join Date
    Feb 2007
    Posts
    244

    Default Help needed to changing ENTITY.GRID.XML.CONFIG

    Hi! I would like to get some help to change ENTITY.GRID.XML.CONFIG.

    When displaying the manufacturer page, this xmlpackage shows the (medium) image for the manufacturer and to its right, the text description.

    I would like to have it display the icon image centered and the text description below the image.

    The problem is that the code that controls it seems to be:
    Code:
    <xsl:value-of select="aspdnsf:EntityPageHeaderDescription($EntityName, $EntityID)" disable-output-escaping="yes" />
    This code is defined in the XSLTExtensionBase.cs source code file, and I really don't want to recompile source for these small changes.

    Is there anyway I can accomplish my goal by just changing the xmlpackage? Can you please help me with it?

    Thanks

    fsantos

  2. #2
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    Just replace that part of the xmlpackage with the code that you actually want rather than using aspdnsf:EntityPageHeaderDescription.


    TTFN

    BFG

  3. #3
    mal247 is offline Junior Member
    Join Date
    Apr 2009
    Posts
    16

    Default

    Use this instead:

    <xsl:value-of select="/root/EntityHelpers/*[name()=$EntityName]/descendant::Entity[EntityID=$EntityID]/Description" disable-output-escaping="yes"/>

  4. #4
    fsantos is offline Senior Member
    Join Date
    Feb 2007
    Posts
    244

    Default

    Thanks for your help! Because I'm using more than one locale, I actually had to use a slightly modified version, which was:

    Code:
    <xsl:value-of select="/root/EntityHelpers/*[name()=$EntityName]/descendant::Entity[EntityID=$EntityID]/Description/ml/locale[@name=$LocaleSetting]" disable-output-escaping="yes"/>
    Thanks again,

    fsantos