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

Forums / General Discussions / WebResource.axd

WebResource.axd

4 posts, 1 answered
  1. Sergio
    Sergio avatar
    21 posts
    Registered:
    02 Feb 2009
    03 Sep 2009
    Link to this post
    Dear Sirs,
    we are trying to change a CSS class but it is embedded within "WebResource.axd" file (we saw it with FireBug).
    How can we change/override these styles?
    Thank you very much.
    Best Regards.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    03 Sep 2009
    Link to this post
    Hi Sergio,

    I am not sure which control you are referring but you can override the classes using !important statement. If you are talking about RadControls for ASP.NET AJAX you can also disable the embedded resources if necessary. 

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Sergio
    Sergio avatar
    21 posts
    Registered:
    02 Feb 2009
    03 Sep 2009
    Link to this post
    Hi Ivan,
    many thanks for your support.
    I am referring to the "News View" control of SiteFinity (3.7), I will try your suggestion and let you know.
    Thanks again and Best Regards,
    Sergio
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Sep 2009
    Link to this post
    Hello Sergio,

    Thank you for getting back to us.

    Just a follow up to Ivan's post. For Sitefinity controls such as the News View control you should take a little bit different approach. You should use the external templates for the News View control. For the list view of news you should modify ~/Sitefinity/ControlTemplates/News/ListPageMaster.ascx, and for the single news view you should modify the ~/Sitefinity/ControlTemplates/News/ListPageDetails.ascx. Both of those files have a <telerik:CssFileLink> tag at the beginning of the template. You should modify it to point to your styles, or simply remove it. The modification should look like this:
    <telerik:CssFileLink ID="CssFileLink1" FileName="~/path to your stylesheet"  Media="screen" runat="server" /> 

    For your convenience I am attaching the embedded styles.

    After you are done modifying the external templates, you should map them to the ControlsConfig file with the following lines:
    <viewSettings hostType="Telerik.News.WebControls.NewsView"
          <additionalTemplates> 
            <!--Provides user interface for displaying a list of news items in the NewsView control for the News module.--> 
            <add key="ItemListTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/News/ListPageMaster.ascx" /> 
            <!--Provides user interface for displaying a single news item in the NewsView control of the News module.--> 
            <add key="SingleItemTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/News/ListPageDetails.ascx" /> 
          </additionalTemplates> 
        </viewSettings> 

    If you need more information on working with external templates, and the ControlsConfig file please follow the bellow links:
    Introduction to ControlsConfig file
    Mapping a control to use external template

    Regards,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Answered
Register for webinar
4 posts, 1 answered