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

Notification

Icon
Error

sternyy
#1 Posted : Monday, January 22, 2007 12:50:53 PM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
I noticed that the Service.Master files are all for the "Customer Service" pages. All the other pages I have seen are all Default.Master. Shouldnt all the "Your Account" files be MyAccount.Master? I would hate to have to edit a style for each page because its not assigned to the proper master page.



Are there any other pages that are suppose to have a master page file other then Default.Master?
Cliff
#2 Posted : Monday, January 22, 2007 1:43:36 PM(UTC)
Cliff

Rank: Member

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

Default.master is the backup for most of the pages that may not have a masterpage available to them in the selected theme, which generally include the following:

    * Product.master => Product pages/templates
    * Category.master => Category pages/templates
    * Home.master => Home page
    * MyAccount.master => Account pages
    * Service.master => Customer Service pages
    * Popup.master => Popup pages
    * Custom.master => Custom pages
    * Closed.master => "Store Closed" page
    * Cart.master => Cart page


There may be others that you can use, not sure off the top of my head. Of course, you can use as many as you like. I have a theme in the works right now that has different master pages for different styles of categories. Lots of flexibility here, especially if you're relatively familiar with .Net 2.0.
sternyy
#3 Posted : Monday, January 22, 2007 2:06:59 PM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
how does the theme know to change the master page file? Like how would the theme know to change MyAccount_AddressBook.aspx from Default.master to MyAccount.master? Or do i have to maunally change that myself?
Cliff
#4 Posted : Monday, January 22, 2007 3:31:24 PM(UTC)
Cliff

Rank: Member

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

If MyAccount.master exists in the current theme, it will automatically be used instead of Default.master.
sternyy
#5 Posted : Monday, January 22, 2007 4:38:55 PM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
ok... i used your tech theme, passed it through the generator. I see that most of the *.master files are there. I guess I was thrown off a bit because ContactUs.aspx has Service.master instead of Default.master. So I thought i would have to change the masterpagefile on every page to reflect what file to point to.
Cliff
#6 Posted : Monday, January 22, 2007 7:07:00 PM(UTC)
Cliff

Rank: Member

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

No, that stuff is generally done in the code-behind with PersonalizationServices.GetSafeMasterPage(). The masterpage set in the .aspx page itself is mostly ignored in the live application, I believe.
sternyy
#7 Posted : Tuesday, January 23, 2007 12:11:39 PM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
awsome... that helps so much with adding custom styles to those pages. I understood the use of masterpage files, but like i said i was thrown of when i only saw one .aspx page using something other than the default.
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