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

Forums / Developing with Sitefinity / Style for Downloadlist

Style for Downloadlist

4 posts, 0 answered
  1. Pamela Thalacker
    Pamela Thalacker avatar
    14 posts
    Registered:
    25 Feb 2010
    07 Apr 2010
    Link to this post
    I have put the following in App_Data/Configuration/Telerik.Sitefinity.Configuration.controlsConfig.xml

     

    <viewSettings hostType="Telerik.Libraries.DownloadList">
       <additionalTemplates>
        <add key="ItemListTemplatePath" layoutTemplatePath="~/Sitefinity/ControlTemplates/Libraries/DownloadList.ascx" />
       </additionalTemplates>
    </viewSettings>
     
    I have commented out the cssFileLink pointing to the embedded css file in the control (DownloadList.ascx) and put in a new cssFileLink pointing to my css file.  When I load the control the styles from DownloadList.css are being overridden by WebResource.axd.  I don't see an EnableEmbeddedSkins property.  What else do I need to do to make the DownloadList use my css?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 Apr 2010
    Link to this post
    Hi Pamela Thalacker,

    You could add !important to the properties that are overridden.

    Sincerely yours,
    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. Pamela Thalacker
    Pamela Thalacker avatar
    14 posts
    Registered:
    25 Feb 2010
    07 Apr 2010
    Link to this post
    Thanks.  I already did that.  I was just hoping for something a little more elegant. 

    So replacing the DownloadList is more for changing the basic layout, I guess.  I suppose I could also change all the class names, then it would be forced to use my css, but for now, !important gets the job done
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Apr 2010
    Link to this post
    Hello Pamela Thalacker,

    Changing the css class names will also work. You should also verify that there are not any styles that comes from your template or another control - for instance styles that applies over elements like <a>, <h>

    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