Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
What is considered the best way to create static pages (pages that live outside the BVC database, not Custom Pages)? I'd like to be able to create ASPX pages without codebehind if possible. The page must inheirt BaseStorePage or else it will produce an error. However, when you do this the default theme is always loaded, not the one that you've selected in the admin. I realize that this is being caused by the lack of codebehind which would set the appropriate theme. The only solution I've found is to manuallly set the MasterPage in the Page directive of the static page. The downside to this is that if you change the theme in the admin, this page will always use the theme that's hardcoded into the Page directive. Does anyone have a better solution? Thanks!
Aaron |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
Here you go. Just drop these files into your stores root directory. File Attachment(s): Template.aspx.zip (1kb) downloaded 146 time(s).You cannot view/download attachments. Try to login or register. |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
Thanks, Nick. So are you confirming what I said in my email that there are really only two options: 1) have a codebehind file that sets the MasterPage (preserving the functionality of the admin Theme setting) or 2) don't have a codebehind file and manually set the MasterPage in the Page directive (loosing the ability to change the Theme in the admin -- i.e. the page is oblivious to the admin setting).
Aaron |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 9/27/2004(UTC) Posts: 1,099
|
Hello Aaron.
How about moving the code inline on the page? |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
Yeah, that's a thought...not sure why I didn't think of that! Thanks, Nick. In case anyone else is interested, attached is the result of Nick's suggestion. File Attachment(s): Template.aspx (1kb) downloaded 267 time(s).You cannot view/download attachments. Try to login or register. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 10/28/2003(UTC) Posts: 168
|
Thanks to your suggestions.... i was able to create http://www.sterlingforest.net/Catalogs.aspxcouldnt have done without you guys. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.