Master and Content Pages

4 posts, 1 answers
  1. Adam
    Adam avatar
    6 posts
    Member since:
    Apr 2011

    Posted 12 Apr 2011 Link to this post

    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 :-)?
  2. Boyan Barnev
    Admin
    Boyan Barnev avatar
    2 posts

    Posted 13 Apr 2011 Link to this post

    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

  3. Adam
    Adam avatar
    6 posts
    Member since:
    Apr 2011

    Posted 13 Apr 2011 Link to this post

    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.
  4. Answer
    Boyan Barnev
    Admin
    Boyan Barnev avatar
    2 posts

    Posted 13 Apr 2011 Link to this post

    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

Back to Top