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

Notification

Icon
Error

CodeSine
#1 Posted : Friday, September 29, 2006 5:40:19 PM(UTC)
CodeSine

Rank: Member

Joined: 11/18/2003(UTC)
Posts: 1,465

I noticed that the Product Templates (such as BVC5 and BVC2004) reference a Master Page File in the Themes BVC5 folder directly:
MasterPageFile
="~/BVModules/Themes/Bvc5/Product.master"

I would assume this means that any changes done on a new theme Master Page for Product.master will never be reflected on the product info page. So if this is true then along with any new template someone makes they may need to create a new Product Template that directly reference their Theme folder.

Am I missing something?
TIM

BVC Add-Ons and Development
Chris Dittmeier
#2 Posted : Friday, September 29, 2006 6:24:06 PM(UTC)
Chris Dittmeier

Rank: Member

Joined: 1/3/2004(UTC)
Posts: 1,497

You missed the code in product.aspx.vb under each producttemplate. Look at the Page_PreInit sub. It modifies the MasterPageFile to the theme you are using.
Chris
Sirius Programming

www.siriusprogramming.com
CodeSine
#3 Posted : Friday, September 29, 2006 6:51:03 PM(UTC)
CodeSine

Rank: Member

Joined: 11/18/2003(UTC)
Posts: 1,465

OK I see that, but this doesn't allow you to visually see the page layout in Design mode of VS because it reference the BVC5 theme folder. You would need to hand edit this to point to your theme folder in order to work visually in VS. The other problem I can see happening is users deleting the BVC5 theme folder when using their own. It might be better for default references to go to the root of themes or some other folder than a stock theme.
TIM

BVC Add-Ons and Development
Cliff
#4 Posted : Friday, September 29, 2006 6:58:58 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Because it's all dynamic, I don't see a way around that except to manually edit that dummy link in the module. That, or don't use the Design View (I don't trust it anyway, and it slows down the process).
CodeSine
#5 Posted : Friday, September 29, 2006 7:50:06 PM(UTC)
CodeSine

Rank: Member

Joined: 11/18/2003(UTC)
Posts: 1,465

Yeah visually it's not great in VS but sometimes it can help to visualize some of your source edits quickly. It's really not a big deal to edit this, just something that I wanted to bring up. I usually blow out any themes I'm not using and since BVC5 default theme will not be used by many it stands a good change of being deleted. I haven't tried a test yet but I imagine this could break things.
TIM

BVC Add-Ons and Development
Cliff
#6 Posted : Friday, September 29, 2006 8:02:39 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Yeah, I haven't had a chance to test that either, but since the real stuff is in the code-behind, changing that path - if just temporarily - shouldn't break anything. I'm no developer, so let us know if you get a chance to mess with it. ;)
Chris Dittmeier
#7 Posted : Friday, September 29, 2006 9:21:00 PM(UTC)
Chris Dittmeier

Rank: Member

Joined: 1/3/2004(UTC)
Posts: 1,497

So when Cliff release FreshStart theme for BVC5, we can all point to that theme as the default one!
Chris
Sirius Programming

www.siriusprogramming.com
Cliff
#8 Posted : Saturday, September 30, 2006 12:42:34 AM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Hah. Oh, the pressure is on...
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