• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Aaron
#1 Posted : Wednesday, May 16, 2007 7:26:13 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,381
United States
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
Nick Alberti
#2 Posted : Wednesday, May 16, 2007 9:39:05 AM(UTC)
Nick Alberti

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.
Aaron
#3 Posted : Wednesday, May 16, 2007 10:15:57 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,381
United States
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
Nick Alberti
#4 Posted : Wednesday, May 16, 2007 11:44:12 AM(UTC)
Nick Alberti

Rank: Member

Joined: 9/27/2004(UTC)
Posts: 1,099

Hello Aaron.

How about moving the code inline on the page?
Aaron
#5 Posted : Wednesday, May 16, 2007 12:04:06 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,381
United States
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
Jazzsingh
#6 Posted : Saturday, May 19, 2007 8:58:25 PM(UTC)
Jazzsingh

Rank: Member

Joined: 10/28/2003(UTC)
Posts: 168

Thanks to your suggestions.... i was able to create http://www.sterlingforest.net/Catalogs.aspx

couldnt have done without you guys.
Jazz Singh
SEO, Ecommerce, BVSoftware Development, Database Development, SQL Scripts,

www.DesignMarketSEO.com

www.sequent-tech.com
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012