More in this section

Forums / Developing with Sitefinity / Customising the News Item "Edit" page

Customising the News Item "Edit" page

7 posts, 3 answered
  1. Richard
    Richard avatar
    77 posts
    Registered:
    24 Oct 2007
    16 Apr 2010
    Link to this post
    I understand I can add a simple textfield by amending the web.config metafields seciton as discussed here but is there anyway of adding an editor to this page?  I basically would like to be able to make use of the SiteFinity "Insert Link" window and store the URL.  It doesn't need to be an telerik editor, and can be a textfield with this "added" feature if possible.

    Thanks
    R


  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    16 Apr 2010
    Link to this post
    Hi Richard,

    Thank you for using our services.

    This is possible, please take a look at the following forum thread discussing this: http://www.sitefinity.com/support/forums/sitefinity-3-x/developing-with-sitefinity/customizing-the-news-summary-field.aspx

    Also if you are using the built in Link Manager to include resources from Sitefinity you will have to resolve the paths included in the content. Please consult this blog post: Resolving the url of dynamic links

    Greetings,
    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.
    Answered
  3. Richard
    Richard avatar
    77 posts
    Registered:
    24 Oct 2007
    16 Apr 2010
    Link to this post
    Thank you but there is just one issue.  The location of the two files that the post refers to, do not exist in my project(?).  i.e. ~/Sitefinity/Admin/ControlTemplates/News/NewsItemNew.ascx and ~/Sitefinity/Admin/ControlTemplates/News/NewsItemEdit.ascx

    Please see attached screenshot of my solution (which is the website folder).
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    16 Apr 2010
    Link to this post
    Hello Richard,

    You have to download the external templates archive from your Client.Net account and follow the steps from this KB article: http://www.sitefinity.com/support/kb/sitefinity-3-x/how-to-map-a-view-to-an-external-template-in-sitefinity-3-6-or-later.aspx

    Kind regards,
    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.
    Answered
  5. Richard
    Richard avatar
    77 posts
    Registered:
    24 Oct 2007
    19 Apr 2010
    Link to this post
    Hi Radoslav,

    Thank you for the information and links.

    I have download the external projects, and am successful in adding an additional editor to the page with a custom toolbar.

    The page compiles fine but when I enter information in to the new editor (ID="myTestEditor") it fails to save it and/or the edit page fails to retrieve it.

    Your assistance appreciated.

    Thank you
    Richard
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    19 Apr 2010
    Link to this post
    Hello Richard,

    The id of the editor should be the same as the id of your metafield. For example if it is for the Summary metafield it should have the same id, as well as it should be in the place of the summary textbox:

    <sf:ContentMetaFields ID="MetaFields" runat="server">
        <ItemTemplate>
                    <h3>
                        <asp:Literal ID="Literal15" runat="server" Text="<%$Resources:Category %>"></asp:Literal></h3>
                    <fieldset class="set">
                        ...
                                    <em id="SummaryLabel" runat="server"></em></asp:Label>
                                <telerik:Radeditor ID="Summary" runat="server"...>...</telerik:Radeditor>
                                <p class="example">
                                    <asp:Literal ID="Literal20" runat="server" Text="<%$Resources:SummaryNote %>"></asp:Literal></p>
                            </li>
                            ...
                    </fieldset>
                </ItemTemplate>
    </sf:ContentMetaFields>

    As well as it should be in between the ItemTemplate of the ContentMetaFields control.

    Greetings,
    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.
    Answered
  7. Richard
    Richard avatar
    77 posts
    Registered:
    24 Oct 2007
    20 Apr 2010
    Link to this post
    Thank you! 
    I got it working.
    It needs to be in <ItemTemplate> of the <ContentMetaFields> control which I also didn't notice.
Register for webinar
7 posts, 3 answered