This is a migrated thread and some comments may be shown as answers.

Master and Content Pages

3 Answers 86 Views
Telerik Trainer
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 12 Apr 2011, 05:11 PM
Now the site I've been working on is good looking and I'm starting to love sitefinity even more, although I'm wondering is it possible to include content pages within a master page? Cause I have three-four different master pages due to my website's requirements, but it's all using the same navigation and it's annoying editing it in every masterpage, so I'm wondering is it possible to use a contentplaceholder which does not get read by Sitefinity and will be included on pageloads :O?

Or is there another way to have a contentpage with my navigation HTML into my masterpages :-)?

3 Answers, 1 is accepted

Sort by
0
Boyan Barnev
Telerik team
answered on 13 Apr 2011, 03:10 PM
Hello Adam,

Can you please elaborate more on the problem you're facing. If I'm getting you correctly you want to have several different master pages but the same navigation on all of them. In this case, why don't you use nested master pages and place the navigation in the parent and do the customizations in the children, or whatever logic suits your purpose. If the functionality you demand is different, please inform me, so that I can give you a better advise.

Regards,
Boyan Barnev
the Telerik team

0
Adam
Top achievements
Rank 1
answered on 13 Apr 2011, 03:43 PM
Ill try my best to explain this graphically in characters, I have 3 master pages - which all use the same navigation:

< Master >  |  < Master >  |  < Master >
      \                       |                   /
         <    Navigation Master    >

The master pages should all use the navigation, and I can't do it the other way around having the navigation their parent cause they have different designs and stylesheets.

Can I do a nested master page file without (MasterPageFile="~/NameOf.master"), so I'm not specifying only ONE master parent, is that possible, that is what I'm wondering? If you're familiar with PHP it's possible to do ex: include 'navigation.php'; and it would include the navigation content, which I'm trying to do in this case.
0
Accepted
Boyan Barnev
Telerik team
answered on 13 Apr 2011, 04:57 PM
Hello Adam,

Do you have any other specific styling/content on the page with the Navigation that you want to include in the master page? If you just create a master page that contains the navigation control, let's say in the header, then your children can inherit from it with no problem and have their own styles/content applied, and they will use the navigation form the parent.

Greetings,
Boyan Barnev
the Telerik team

Tags
Telerik Trainer
Asked by
Adam
Top achievements
Rank 1
Answers by
Boyan Barnev
Telerik team
Adam
Top achievements
Rank 1
Share this question
or