More in this section

Forums / Developing with Sitefinity / Apply Css on Generic Content User Control

Apply Css on Generic Content User Control

2 posts, 0 answered
  1. Craig Taylor
    Craig Taylor avatar
    10 posts
    22 Apr 2010
    18 Nov 2010
    Link to this post
    To whom it may concern,

    My query is in relation to the Generic Usercontrol, that you can drop onto a page in Edit View. 

    Firstly, I have this snippet in the EditorToolsFile.xml

        <item name="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css" />

    I've deleted the class elements and there still is no population in the ApplyCss drop down.

    I want to try the programmatic approach, I understand the editor files are:

    /Generic_Content/ContentEditView.ascx and /Generic_Content/ContentNewView.ascx.

    What about the Image properties dialog that is triggered from right clicking an image in the Generic Content control and choosing the "Image Properties" from the resulting context menu how can I add css styles to that menu?

    I know that under 3.5 there was a file called /Generic_Content/EditorTemplate.ascx that I made these changes in a while ago on the solution worked. Is that file still mappable under 3.7 SP4 or am I correct in listing the Edit and New views files above.


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    18 Nov 2010
    Link to this post
    Hello Craig,

    Since Sitefinity 3.6 we use embedded templates. Please take a look at How to map a template

    You can use TableLayoutCssFile to make reference to external Style sheet  that has custom css classes.

    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
2 posts, 0 answered