Adding a custom Masterpage

Posted by Community Admin on 03-Aug-2018 20:04

Adding a custom Masterpage

All Replies

Posted by Community Admin on 22-Apr-2010 00:00

Is there some trick to getting a custom masterpage to work?

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'SitefinityWebApp.App_Master.Site'.

Source Error:

Line 1:  <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="SitefinityWebApp.App_Master.Site" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/.../xhtml1-transitional.dtd">

Source File: /temp/Site.Master    Line: 1


Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

Posted by Community Admin on 23-Apr-2010 00:00

Hi Steve,

Thank you for using our services.

Since Sitefinity 4.0 is built as a web application rather than a website you should always build the application when you introduce any code changes. In this case since the application is not built it cannot find the class SitefinityWebApp.App_Master.Site, so try building application first.

Greetings,
Radoslav Georgiev
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 24-Apr-2010 00:00

Ok got it, I hate webapps...I know it's nice to know the thing compiles, but I like the freedom to quickly tweak and add files

Anywho...

Why is it that in my masterpage design mode I don't see the nice bounding boxes around my content placeholders the defaut templates have?

Posted by Community Admin on 24-Apr-2010 00:00

Whats the trick to get the resourcelinks control to work?  I assume this is the new version of the Css\JsFileLink?

<sf:ResourceLinks ID="resLinks" runat="server" UseEmbeddedThemes="false">
     <sf:ResourceFile Name="~/include/css/default.css" Static="True" />  
</sf:ResourceLinks>

Its trying to find local.sitefinity4.com/.../default.css

instead of local.sitefinity4.com/.../default.css

Posted by Community Admin on 25-Apr-2010 00:00

Hello Steve,

You could try this one

<sf:ResourceLinks  ID="resLinks" runat="server" UseEmbeddedThemes="false">
     <sf:ResourceFile Name="include/css/default.css" /> 
</sf:ResourceLinks>

but it depends on where you use ResourceLinks  - the file location is important.

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.

Posted by Community Admin on 26-Apr-2010 00:00

Hello Steve,

After some further investigation we found that there is a bug in the control. Your Telerik points have been updated.

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.

Posted by Community Admin on 26-Apr-2010 00:00

Thanks!  You don't have to update my points for a CTP though :)

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

Hi ,

1.Set Static property to true. AssemblyInfo should contain a class from your assembly.

<sitefinity:ResourceLinks ID="ResourceLinks1" runat="server" UseEmbeddedThemes="true">
    <sitefinity:ResourceFile Name="Telerik.Sitefinity.Samples.Resources.Layout.css" Static="true" AssemblyInfo="Telerik.Sitefinity.Samples.Reference, Telerik.Sitefinity.Samples" />
</sitefinity:ResourceLinks>

2. Layout.css should be "EmbeddedResource" and it has to be registered inside AssemblyInfo.cs

If 1 and 2 are met the class is add to a page.

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

This thread is closed