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

Forums / General Discussions / Integrating existing masterpage with Sitefinity 4.0

Integrating existing masterpage with Sitefinity 4.0

8 posts, 0 answered
  1. G S S
    G S S avatar
    71 posts
    Registered:
    16 Mar 2008
    24 Jan 2011
    Link to this post
    Hi,

    I have a custom masterpage, with a lot of graphics and one or two contentplaceholders. When I upload this to sitefiniy and preview it, the preview does not show the graphics. At most, just the links are displayed.
        
    This begs the question, how can I integrate an existing masterpage to correctly work with Sitefinity 4.0?

    Thanks
  2. Jonathan
    Jonathan avatar
    9 posts
    Registered:
    02 Jun 2005
    24 Jan 2011
    Link to this post
    This documentation is pretty good a stepping you through the basics:

    http://www.sitefinity.com/4.0/documentation/How-to-create-a-website-template.aspx

    For the images I usually find my problem lies in making sure I have the correct path.
  3. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    24 Jan 2011
    Link to this post
    Use the Firebug Net tab.  Are the HTTP requests for the graphics getting sent?  Are there any errors?  Can you confirm that the IMG tags are getting rendered in the HTML?  Are the paths correct [test them in the web address bar]?

    Speaking generally, if the Master Page references an image then it should work fine if the path is correct.

    Your post doesn't really have enough details to suggest an answer.

    Gabe Sumner
    Telerik | Sitefinity CMS
  4. Kelly
    Kelly avatar
    24 posts
    Registered:
    05 May 2010
    14 Feb 2011
    Link to this post
    I am having the same issue. I just copied the old mast page in 3.7 and dropped it into the App_Master folder in my 4.0 instance. The images are in a file in my App_Themes, again just copied and pasted over. I am using the same path to reference the image as before. Example:

    <div id="left-shadow"><img src="App_Themes/Blackbarn/images/dropshadow-left.jpg" /></div>

    Is this different in 4.0?
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    15 Feb 2011
    Link to this post
    Hello Kelly,

    You should put the files inside App_Data/Sitefinity/WebsiteTempaltes/App_Themes folder
    If you use html control - img the src should start with /Sitefinity. For server controls use ~/App_Data. Please take a look at



    Kind regards,
    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
  6. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    15 Feb 2011
    Link to this post
    Are there any implications in using ~/App_Master and ~/App_Themes folders?

    Putting it in the ~/App_Data does seem to make deployment easier, but it is a little unintuitive since it goes against the native ASP.NET 4.0 standards. Why should we use the ~/App_Data folder besides deployment and relative paths issues?
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    15 Feb 2011
    Link to this post
    Hello bemara57,

    There are future plans to make Sitefinity integration (synchronization) with MarketPlace, so you can upload or download some data directly. This is why we suggest using the App_Data/Sitefinity/WebsiteTempaltes/. When your templates and themes are inside App_Data  we allow you to dynamically control these files from Sitefinity's UI. App_Master folder was introduced by us in the older versions of Sitefinity - 3.x.

    Kind regards,
    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
  8. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    15 Feb 2011
    Link to this post
    @bemara57

    I was skeptical initially, but I gotta say, having EVERYTHING live under a single folder is pretty awesome.  I had a problem where I had to blow away the entire site and start again (twice actually), and all I needed to do was copy over the theme into App_Data (and updated the config) and I was up and running again.

    The only thing I hate is having to navigate down the tree EVERY time in the backend files area
8 posts, 0 answered