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

Forums / General Discussions / Page template like a form

Page template like a form

4 posts, 0 answered
  1. gimi
    gimi avatar
    2 posts
    Registered:
    10 Aug 2006
    18 May 2010
    Link to this post

    Gents,

    I have the following scenario.

    I have a page with different sections. Think of it like a form or a template page to be filled in by specific users from a specific role. In the edit mode (CMS view) users can fill in the form but cannot change the structure of the page and on the website the sections are displayed in plain html without text boxes.

    I tried to create a masterpage and add different content placeholders for each section with a generic content. Unfortunately creating a new page from this masterpage doesn’t allow me to fill in the generic content!

    Is there a way to achieve this using Sitefinity without much customisation?

    Cheers,

    GiMi

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    18 May 2010
    Link to this post
    Hi gimi,

    Unfortunately this cannot be achieved easily as you are requesting it. The current design of pages and templates is that a control in the template cannot be edited in a page inheriting from this template. Controls can be edited only from pages/templates they are added to. This means that with the current functionality the closest you can do is to define empty content place holders on your master page. Then when your content contributors create content they should add the Generic Content Control and insert text.

    Sincerely yours,
    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.
  3. gimi
    gimi avatar
    2 posts
    Registered:
    10 Aug 2006
    20 May 2010
    Link to this post
    Thanks George.

    Unfortunately I expected this answer.

    Anyhow another solution might be to create a control which on a admin section to present its value (mainly html text) using the RadEditor and on the web just the HTML. Any direction how to implement this? A kind of Generic Content control with 2 views? One for the admin where we can save and one for the web?

    Can we deny to some roles the possibility to remove an already existing control from the content placeholders?

    Cheers,
    GiMi.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    20 May 2010
    Link to this post
    Hi gimi,

    You could create a backend view, another backend page or section from where you could set the value that a given control will display. The steps that you should follow are listed below

    1. Create a page or view which will be used to set the public control values - for instance RadEditor with a Button and a DropDown that will be used to specify which page you want to modify.

    2. When the button is clicked you need to get the Page( you should use CmsManager - GetPage method) and the RadEditor content (  the RadEditor control has a property - Content). When you find this page, loop through the controls collection, find your control and set its content value. You can find sample code here - Finding Controls and Modifying Controls

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