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

Thread: Get Summary to show in entity.grid.xml.config

  1. #1
    peter3827 is offline Senior Member
    Join Date
    Nov 2005
    Posts
    281

    Default Get Summary to show in entity.grid.xml.config

    I'm trying to replace the description call to the summary. Here is the call, <xsl:value-of select="aspdnsf:EntityPageHeaderDescription($Entit yName, $EntityID)" disable-output-escaping="yes" />. How do you change that to the Summary? I tried to just change Description to Summary but that didn't work. Any help will do. Thanks.

  2. #2
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    What you probably need is something like this:

    Code:
    <xsl:value-of select="aspdnsf:GetMLValue(Summary)" disable-output-escaping="yes" />
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!

  3. #3
    peter3827 is offline Senior Member
    Join Date
    Nov 2005
    Posts
    281

    Default

    Yea, I thought it was that too but no luck.

  4. #4
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    That worked on ours. So are you getting an XML error, or just no data?
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!

  5. #5
    peter3827 is offline Senior Member
    Join Date
    Nov 2005
    Posts
    281

    Default

    We get no data over here.

  6. #6
    peter3827 is offline Senior Member
    Join Date
    Nov 2005
    Posts
    281

    Default

    Okay, we figured it out. In order to have the summary at the top of your category you have to edit the XSLTExtensionBase.cs. Find EntityPageHeaderDescription and copy whats below.



    public virtual string EntityPageHeaderSummary(string sEntityName, String sEntityID)
    {
    InputValidator IV = new InputValidator("EntityPageHeaderDescription");
    String EntityName = IV.ValidateString("EntityName", sEntityName);
    int EntityID = IV.ValidateInt("EntityID", sEntityID);
    StringBuilder results = new StringBuilder("");

    string EntityInstancePicture = AppLogic.LookupImage(EntityName, EntityID, "medium", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
    EntityHelper m_EntityHelper = AppLogic.LookupHelper(EntityName);
    XmlNode n = m_EntityHelper.m_TblMgr.SetContext(EntityID);

    string EntityInstanceDescription = m_EntityHelper.m_TblMgr.CurrentFieldByLocale(n, "Summary", ThisCustomer.LocaleSetting);
    string DescrExcludeString = AppLogic.AppConfig("EntityDescrHTMLEqualsEmpty");
    if (DescrExcludeString.Length > 0)
    {
    foreach (string s in DescrExcludeString.Split(','))
    {
    if (EntityInstanceDescription.Replace("\n", "").Trim() ==
    s.Trim())
    {
    return "";
    }
    }
    }
    if (AppLogic.ReplaceImageURLFromAssetMgr)
    {
    EntityInstanceDescription = EntityInstanceDescription.Replace("../images", "images");
    }
    String FileDescription = new DescriptionFile(EntityName, EntityID, ThisCustomer.LocaleSetting, ThisCustomer.SkinID).Contents;
    if (FileDescription.Length != 0)
    {
    EntityInstanceDescription += "<div align=\"left\">" + FileDescription + "</div>";
    }

    if (AppLogic.AppConfigBool("UseParserOnEntityDescript ions"))
    {
    Parser p = new Parser(ThisCustomer.SkinID, ThisCustomer);
    EntityInstanceDescription = p.ReplaceTokens(EntityInstanceDescription);
    }

    if (AppLogic.AppConfigBool("Force" + EntityName + "HeaderDisplay") ||
    EntityInstanceDescription.Length != 0)
    {
    results.Append("<p align=\"left\">\n");
    if (EntityInstanceDescription.Length != 0 &&
    EntityInstancePicture.IndexOf("nopicture") == -1)
    {
    results.Append("<img align=\"left\" src=\"" + EntityInstancePicture + "\" border=\"0\">");
    }
    results.Append(EntityInstanceDescription);
    results.Append("</p>\n");
    results.Append("<br clear=\"all\"/>");
    }

    return results.ToString();
    }

  7. #7
    slides is offline Junior Member
    Join Date
    Jan 2012
    Posts
    4

    Default XSLTExtensionBase.cs

    hi, where can i find the XSLTExtensionBase.cs file?
    I have downloaded the whole file and i cant find that file.
    Im using multi-store.
    Last edited by slides; 01-27-2012 at 02:06 AM.