Integrating existing masterpage with Sitefinity 4.0

Posted by Community Admin on 03-Aug-2018 00:36

Integrating existing masterpage with Sitefinity 4.0

All Replies

Posted by Community Admin on 24-Jan-2011 00:00

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

Posted by Community Admin on 24-Jan-2011 00:00

This documentation is pretty good a stepping you through the basics:

www.sitefinity.com/.../How-to-create-a-website-template.aspx

For the images I usually find my problem lies in making sure I have the correct path.

Posted by Community Admin on 24-Jan-2011 00:00

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

Posted by Community Admin on 14-Feb-2011 00:00

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?

Posted by Community Admin on 15-Feb-2011 00:00

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

Posted by Community Admin on 15-Feb-2011 00:00

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?

Posted by Community Admin on 15-Feb-2011 00:00

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

Posted by Community Admin on 15-Feb-2011 00:00

@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

This thread is closed