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

Forums / Developing with Sitefinity / Sitefinity 3.7 Community EditorTemplate.ascx

Sitefinity 3.7 Community EditorTemplate.ascx

7 posts, 0 answered
  1. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    09 Sep 2009
    Link to this post
    Hi there

    I am using 3.7 Community Edition and would like to change the

    EditorTemplate.ascx


    Here are some thoughts after reading trough a lot of posts here

    a) why not include all the Configurateion file in App_Data and have everything commented so you can uncomment it when needed

    b) why not include all the Templates
      - 1) I had to know that I needed to download them
      - 2) I had to copy them to my project
      - 3) It seems to me depending on Standard or Community there are more or less

    c) It seems to map the editor the needed code is not in the configurateion file example.

    Here is my probelm

    Community 3.7
    A) my Telerik.Sitefinity.Configuration.ControlsConfig.xml file looks like this (found the code in a post not in the example file)

    <?xml version="1.0" encoding="utf-8" ?> 
    <controlsConfig> 
      <viewMap> 
        <viewSettings hostType="Telerik.Cms.Engine.WebControls.HtmlContentEditor" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Generic_Content/EditorTemplate.ascx" /> 
             </viewMap> 
        </controlsConfig> 
     

    B) Copied EditorTemplate.ascx to Sitefinity/Admin/ControlTemplates/Generic_Content/ and made some changes. They do not apply. Anything I do will not change a thing. For example I changed

    ToolsFile="~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml"
     to
    ToolsFile="~/Sitefinity/Admin/ControlTemplates/EditorToolsFileAll.xml"

    No effect.



    Also changed some CSS in     ContentAreaCssFile="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css"

    no effect

    REASON TO CHANGE

    I have some paragraph stiles that are strange and the editor is not picking up my CSS styles for the page.

    Any idea what I am doing wrong.

    Regards Markus

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Sep 2009
    Link to this post
    Hello Markus Berchtold,

    Thank you for using our services.

    From the information you have provided below I can see that you are trying to map the template for the Generic Content control (see attached image). Now since Sitefinity 3.6 ,the version in which we have introduced the the new architecture, some of the names of the control templates have been changed also. Here I must admit that it is our mistake for not defining the appropriate channels to communicate the changes in versions accordingly.

    In your case the name for the Generic Content control since version 3.6 is ~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx. Try editing this external template and then map it to the controls config file like this:
    <viewSettings hostType="Telerik.Cms.Engine.WebControls.Design.GenericContentDesigner" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx" /> 

    As for the differences in external templates for community and standard editions. Most of the functional limitations of the community edition involve internal functionalities, etc. The should be no differences in the number of templates shipped for the community edition, those templates would just miss the markup for the functionality that is not present there.

    As for the reason not including the external templates upon project initialization I believe we have already provided you with an answer to this question in the following thread: 15 Questions/Features I have not found the solution.

    If you need clarification on those issues feel free to contact us by opening a forum thread or raising a support ticket.

    Sincerely yours,
    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.
  3. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    09 Sep 2009
    Link to this post
    Dear Radoslav

    Thanks again for your answers they are very helpfull and your support just rocks.

    Concerning the deployment of the files I did ask again because looking for solutions in the forum I saw so many questions concerning the templates.

    Your answer in the other post was

    14) Control Templates

    One of decisions to distribute control templates separately by default is because a lot of users would just prefer to use the built in controls and their look and feel.  They would also want to restrict their user from fiddling in the page editor and changing layout templates etc. I hope that you understand our logic behind such a decision.

    My 2 cents on this

    a) you dont have to use the extra control templates and I would assume as long as you dont map them the standwards would still be used

    b) I have been working with sitefinity for a couple of days now and you see I have problem mapping (and so have many others) Therefore I would not assume that clients of webpublisher would be fiddling around in the page editor

    The client would fist, have to have know-ledge of that mapping would be needed. Then he would have to do the mapping (I am strugeling :-)) then the would need to change the templates and all this while up and downloading the files. So I think its very unlikely that anybody else but the developer would actually be able to use the templates.

    And I just thought it would be of great help to us developers and to you as well. Less dumb questions from users like me : where are the templates, how to map them .

    So once again thanks for your outstanding support and I hope you can follow my thoughts. I do respect your descition to deploy or not deploy fields.

    Regards Markus
  4. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    09 Sep 2009
    Link to this post
    I looked at the Generic_Control Templates and there are many more then the one you tiped me to be the right one. So I was wondering what would make my life easier. And probably your to :-)

    How about this.

    You include a blank Telerik.Sitefinity.Configuration.ControlsConfig.xml file

    <?xml version="1.0" encoding="utf-8" ?>    
    <controlsConfig>    
      <viewMap>    
        <viewSettings hostType="Telerik.Cms.Engine.WebControls.HtmlContentEditor" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Generic_Content/EditorTemplate.ascx" />    
             </viewMap>    
        </controlsConfig>    
     

    And you include all extra ControlTemplaes

    In each Conroltemplate Top is a commented line wich explains what the ControlTemplate is used for (It might be clear to you but not to me)

    And in a second commented line you have the <viewSettings code which we could cut and past to the ControlsConfig.xml.

    Does this sound like an good idea`?

    Les time that you need to support us and faster development for us :-)

    Regards Markus
  5. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Sep 2009
    Link to this post
    Hi Markus Berchtold,

    We appreciate your feedback.

    What I meant in the previous thread was not web site users, but rather users tat have access to the CMS area and are responsible for creating/updating content.

    Anyway you are right that it is not very clear both to users that have been using versions prior to Sitefinity 3.6 and to new users that control templates are embedded. It also is not clear enough to the regular developer which template is for which control. While we constantly struggle to make web site development easier for people using Sitefinity, I guess we are not doing so well on exposing all the needed information for convenient access by our users.

    Your suggestions have been noted and we will see what we can do about improving the use of Sitefinity.

    Once again thank you for the feedback and I hope that you will have more ease of using the system in the time to come.

    Greetings,
    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.
  6. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    10 Sep 2009
    Link to this post

    Dear Radoslav

    I hope you did not get me wrong.

    I love sitefinity so far and your support is just world class. And I don't just say that.

    What I don't understand is how users that have access to the CSM could be fiddeling around with templages? Again I thought as long as we developer don't map them, the default would be used. So I don't see the problem there.

     

    Once again - thanks a whole heap

     

    Markus

  7. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    14 Sep 2009
    Link to this post
    Hello Markus Berchtold,

    I understand your concerns, as well as the concerns of other community members.

    We should make the process easier, and I will take this for discussion on our next planning meeting. In the mean time we will have to stick with the currently available methods.

    Sincerely yours,
    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.
Register for webinar
7 posts, 0 answered