+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / Creating Master Pages From Scratch

Creating Master Pages From Scratch

4 posts, 0 answered
  1. Michael Kellogg
    Michael Kellogg avatar
    6 posts
    Registered:
    01 Oct 2009
    22 Apr 2010
    Link to this post
    I am evaluating SiteFinity and trying to see how difficult it is for me to take a page provided to me with HTML & CSS by my designer, and get it to work inside the CMS.  It's simple enough to create a master page in Visual Studio and drop it in, restart IIS and get it selectable by pages.

    What I can't figure out is how to make it actually work as a CMS dynamic page once there.  Example: I created a new master page.  It works fine in SiteFinity (i.e. I can see my CSS div/zones, etc.).  However I cannot see any content at all (e.g. menu, body content, sidebar, etc.).  I then go to one of the existing SiteFinity master pages, like "inner.master" and copy all the markup from there, go to my page, paste it all over my code, so effectively I have an exact duplicate of your fully-working template.  Save it and set my random page to use that new template.  What I get is a really generic page with no menu, although there is some content.  Why doesn't it look exactly like the page when rendered with "inner.master" ?

    I assumed all I needed to do was name my DIV tags correctly to get the CMS to assign content to the right places on my master page (this is how Joomla does it), but it's obvious there's something more going on behind the scenes.  I tried to learn what that is, but the developer manual CHM is corrupted (titles but no content; I dl'd it twice) and the pages in the online manual that refer to this process are also blank.  So the question is: How do I create my own master pages, drop them into an existing site (like the sample one that comes with the product), and have them work?  Is there a tutorial somewhere?

    Thanks,
      Mike
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Apr 2010
    Link to this post
    Hi Michael Kellogg,

    You should have ContentPlaceHolders - please take a look at ASP.NET Master Pages where you have to drop a control.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Michael Kellogg
    Michael Kellogg avatar
    6 posts
    Registered:
    01 Oct 2009
    23 Apr 2010
    Link to this post
    Not sure why you'd think I didn't have content placeholders; like I said, I literally copied the entire markup out of "inner.master" and dropped it into my new master page.  Then, when I switched a page that was based on "inner" over to the new master, I expected it to look identical to the way it looked under "inner."  It didn't.  Body content was there, but the menu and logo, etc., were missing.

    I am currently running through Gabe Sumner's excellent webinar on this subject and finding it very helpful (http://www.sitefinity.com/support/webinars/designing-skinning-with-sitefinity.aspx).  I'll let you know if I discover the problem afterward.

    Thanks,
      Mike
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Apr 2010
    Link to this post
    Hi Michael Kellogg,

    Most probably you do not have the same css classes and properties that sets the logo and Content Place Holder positioning in your Theme - ASP.NET Themes and Skin.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
4 posts, 0 answered