More in this section

Forums / Developing with Sitefinity / Last modified generic contents - modified by missing

Last modified generic contents - modified by missing

5 posts, 0 answered
  1. Laura
    Laura avatar
    311 posts
    Registered:
    25 Feb 2008
    18 Dec 2009
    Link to this post
    If I (admin) select to view the "Last modified generic contents" on my Dashboard, the column for "Modified By" is not being populated... how can I see the modifed by name here?

    Thanks,
    Laura
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    19 Dec 2009
    Link to this post
    Hi Laura,

    In 3.7 SP2 there is additional implementation in the templates "Additional Info" ( take a look at the attaches screenshot) that fix the problem you have.

    Regards,
    Ivan Dimitrov
    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. Laura
    Laura avatar
    311 posts
    Registered:
    25 Feb 2008
    19 Jan 2010
    Link to this post
    .
  4. Laura
    Laura avatar
    311 posts
    Registered:
    25 Feb 2008
    19 Jan 2010
    Link to this post
    So the information can't be pulled programmatically?  You have to type in whoever modified it last and the 'author'? better yet - can any of these suggestions be implemented below or is anything in the works?

    --what would be really helpful here is to include "Last modified by" instead of "Author", and a hover of some sort that will tell you what pages it is included on similar to the templates (see image). I know there is a search but when editing a lot of these items it is time consuming to always search and or re-order each time. Better yet - have a "default sort by" check box with different options such as last modified date, name, status, or modified by.


    Thank you as always!

    See image
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Jan 2010
    Link to this post
    Hi Laura,

    You can easily add data modified to ContentItemsList template of GenericContent

    1. Map the external template ContentItemsList.ascx

    <viewSettings hostType="Telerik.Cms.Engine.WebControls.Admin.ContentItemsList`1[[Telerik.Cms.Engine.WebControls.Admin.ContentItemsView, Telerik.Cms.Engine]]" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Generic_Content/ContentItemsList.ascx" />


    2. Add highlighted parts to the template

    <telerik:ClientTemplatesHolder ID="GridTemplates" runat="server">
        <telerik:ClientTemplate ID="ClientTemplate1" Name="Edit" runat="server">
            <a href="<%= ((Telerik.Cms.Engine.WebControls.Admin.ContentItemsList<Telerik.Cms.Engine.WebControls.Admin.ContentItemsView>)Parent.Parent).ItemEditUrl %>"><asp:Literal ID="Literal1" Text="<%$ Resources:Edit %>" runat="server" /></a>
        </telerik:ClientTemplate>
        <telerik:ClientTemplate ID="ClientTemplate2" Name="Delete" runat="server">
            <a href="javascript:if(confirm('<%= GetLocalResourceObject("AreYouSure_Delete") %>')) DeleteContent('{#ID#}')"><asp:Literal ID="Literal2" Text="<%$ Resources:Delete %>" runat="server" /></a>
        </telerik:ClientTemplate>
        <telerik:ClientTemplate ID="ClientTemplate3" Name="View" runat="server">
            <a href="<%= ((Telerik.Cms.Engine.WebControls.Admin.ContentItemsList<Telerik.Cms.Engine.WebControls.Admin.ContentItemsView>)Parent.Parent).ItemViewUrl %>">{#MetaFields.Name#}</a>
        </telerik:ClientTemplate>
        <telerik:ClientTemplate ID="ClientTemplate4" Name="Author" runat="server">
            {#MetaFields.Author#}
        </telerik:ClientTemplate>
        <telerik:ClientTemplate ID="ClientTemplate5" Name="Description" runat="server">
            {#MetaFields.Description#}
        </telerik:ClientTemplate>
        <telerik:ClientTemplate ID="ClientTemplate6" Name="Status" runat="server">
            {#Status#}
        </telerik:ClientTemplate>
        <telerik:ClientTemplate ID="ClientTemplate7" Name="DateModified" runat="server">
            {#DateModified#}
        </telerik:ClientTemplate>
    </telerik:ClientTemplatesHolder>



    <MasterTableView AllowMultiColumnSorting="false" CssClass="listItems listItemsBindOnClient" Width="98%" >
                <Columns>
                    <telerik:GridTemplateColumn ItemStyle-CssClass="gridActions edit" UniqueName="Edit">
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn
                        UniqueName="Delete" ItemStyle-CssClass="gridActions delete">
                    </telerik:GridTemplateColumn>
                    <telerik:GridClientSelectColumn UniqueName="CheckBoxColumn" HeaderStyle-CssClass="check" ItemStyle-CssClass="check">
                    </telerik:GridClientSelectColumn>
                    <telerik:GridTemplateColumn
                        UniqueName="View" 
                        SortExpression="Name"
                        ItemStyle-CssClass="gridContentTitle"
                        HeaderText="<%$ Resources:Name %>">
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn
                        UniqueName="Author" 
                        SortExpression="Author"
                        HeaderText="<%$ Resources:Author %>">
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn
                        UniqueName="Description" 
                        HeaderText="<%$ Resources:Description %>">
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn
                        UniqueName="Status" 
                        HeaderText="<%$ Resources:Status %>">
                    </telerik:GridTemplateColumn>
                         <telerik:GridTemplateColumn
                        UniqueName="DateModified" 
                        HeaderText="DateModified">
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>

    It is not possible to know on which page you have an IContent item. The relation is ContentView control -> ICmsPage. There is no relation IContent -> ICmsPage.

    Best wishes,
    Ivan Dimitrov
    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
5 posts, 0 answered