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

Thread: v9 EntityControl

  1. #1
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default v9 EntityControl

    So I'm noticing that the EntityControl in v9 is a little limited in control of markup (unless you have source code).

    Is there any reason we can't go back to using the XMLPackages (i.e. rev.categories) so we have full control over markup when skinning/customizing?

    So, for example:

    <asp:Literal ID="categorymenu" runat="server" Text="<%$ Tokens:XMLPackage, rev.categories%>"></asp:Literal>
    Matthew Bertulli
    Demac Media
    mbertulli@demacmedia.com
    Custom Web Design & E-Commerce Development
    AspDotNetStoreFront Platinum DevNet Partner
    ----

    Custom Skinning & Design
    Web Services Integration
    Custom Reporting
    Salesforce.com eCommerce AspDotNetStoreFront Integration

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

    Default

    asking Dev. it should at least be CSS controlled at a MINIMUM...
    AspDotNetStorefront
    Shopping Cart

  3. #3
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default

    EntityControl can be CSS controlled. No question there. The concern lies with the old XMLPackages giving us a great deal of flexibility on HTML structure, which is needed in many cases.

    I've tested the rev.categories xml package and it seems to be working. I just want to make sure we can still use these packages without problems. So far it seems ok.
    Matthew Bertulli
    Demac Media
    mbertulli@demacmedia.com
    Custom Web Design & E-Commerce Development
    AspDotNetStoreFront Platinum DevNet Partner
    ----

    Custom Skinning & Design
    Web Services Integration
    Custom Reporting
    Salesforce.com eCommerce AspDotNetStoreFront Integration

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

    Default

    XmlPackages are still supported in the Master Page Skins yes.
    AspDotNetStorefront
    Shopping Cart

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

    Default

    Actually what you end up with here is even more flexibility. We have the default entity control, you can use xmlpackages, and now with masterpages you can create your own user controls that you can load instead of our default entity control (which we plan on moving back out of the source code) or xmlpackages. While the xmlpackages do offer quite a bit of flexibility, a lot of .NET developers would rather write controls than XSLT, but those who want to keep using them for now can. In any case, we've now added one more measure of flexibility to AspDotNetStorefront
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  6. #6
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default

    George (or anybody else)

    How does the XMLPACKAGE token work? I'm trying to run a featuredproducts.xml.config package using the token and I just wind up getting InvalidRequest.aspx. I can run a package no problem that sits within the Skin_1/XmlPackages no problem, but anything in /XmlPackages/ root does not seem to work without error.
    Matthew Bertulli
    Demac Media
    mbertulli@demacmedia.com
    Custom Web Design & E-Commerce Development
    AspDotNetStoreFront Platinum DevNet Partner
    ----

    Custom Skinning & Design
    Web Services Integration
    Custom Reporting
    Salesforce.com eCommerce AspDotNetStoreFront Integration

  7. #7
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    Use our XMLPackage control vs. trying to use a literal. Eg. in the ASPX page or .Master file:

    Code:
    <%@ Register TagPrefix="aspdnsf" TagName="XmlPackage" Src="~/Controls/XmlPackageControl.ascx" %>
    
    <aspdnsf:XmlPackage runat="server" id="SomeID" PackageName="MyPackage.xml.config" EnforceDisclaimer="true" EnforcePassword="true" EnforceSubscription="true" AllowSEPropogation="true" />

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

    Default

    One thing that you'll want to remember is that the old rev.* use simple string concatenation to build the entity and product links based on the ID and the SEName, so none of the rev.* xmlpackages will honor anything but the default routing engine rules. Just a heads up...
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  9. #9
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default

    That is actually great information George. Thanks for sharing that tid-bit. Might even have to throw that on our blog for safe keeping/future finding.
    Matthew Bertulli
    Demac Media
    mbertulli@demacmedia.com
    Custom Web Design & E-Commerce Development
    AspDotNetStoreFront Platinum DevNet Partner
    ----

    Custom Skinning & Design
    Web Services Integration
    Custom Reporting
    Salesforce.com eCommerce AspDotNetStoreFront Integration

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

    Default

    We'd hope scott would add it to our manual one day also
    AspDotNetStorefront
    Shopping Cart