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

Thread: Inherit skinbase in subfolder

  1. #1
    PilotShop is offline Member
    Join Date
    Feb 2007
    Posts
    82

    Default Inherit skinbase in subfolder

    What is the best way to inherit the skinbase in a custom page that is placed inside a root subfolder? Do I need to modify skinbase.cs in the app folder or can I modify the code behind page? What would be the code?

    Thanks,
    Bill

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

    Default

    As long as the new page is part of the AspDotNetStorefront namespace you shouldn't have any issues at all inheriting skinbase in a subfolder.

    - Dan

  3. #3
    PilotShop is offline Member
    Join Date
    Feb 2007
    Posts
    82

    Default

    It doesn't work.....the site throws an error saying it kind find the file:
    "/folder/skins/skin_1.template.ascx'

    I basically made a copy of a working custom page and put it into a subfolder. Works in the root but not in the subfolder......

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

    Default

    skin folders are relative, so to do this, you may have to adjust our skin file lookup code in skinbase.cs.
    AspDotNetStorefront
    Shopping Cart

  5. #5
    Rex is offline Banned
    Join Date
    Nov 2007
    Posts
    561

    Default

    You may need a copy your EntityHelper directory as well,
    or adjust EntityHelper.cs to always look for this directory along the application root.

    ~ line 608
    Code:
    string XslFilePath = CommonLogic.SafeMapPath("~/EntityHelper/" + XslFile + ".xslt");

  6. #6
    virtualtap is offline Senior Member
    Join Date
    May 2007
    Posts
    171

    Default

    Is there a way to inherit SkinBase but not be forced to use template.ascx?
    MSX