Change Date/Owner column in admin - General Discussions - General Discussions - Progress Community
 General Discussions

Change Date/Owner column in admin

  • Change Date/Owner column in admin
  • In the admin view of Sitefinity, is there any way to change the column for "Date/Owner" to "Date Last Edited/Last Edited By"?
  • Hi Suzanne,

    Yes, you can easily achieve this by going to Sitefinity backend - > Administration ->Interface Labels & Messages
    and search for "DateOwner" (without the quotes). Change the value and restart the application, and the new label should be applied.

    Best wishes,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  • Hello,

    I think what Suzanne needed was change the entire column, not just the labels. 

    I think is more useful to have information of the last modification done to the page (ie: last date modified and last modified by) than just date/owner. 

    That's what I need... How can I achieve this ?

    Thanks,

  • Hi,

    Someone from Telerik could give some advice about that ?

    Thanks,

    John.
  • Hi,

    Anyone can answer this please?

    Thanks

  • Hi,

    I am having the same question. Can anyone answer this please?

    Thanks

  • Hello guys,

    You can easily configure the Date/Owner column (and any other column in the Sitefinity list views) to display different value depending on your use case scenario.

    What you need to keep in mind, is that the list views are bound using AJAX, so they make a service call, and can display the returned data. In other words, if you are to stick with minimum modifications, i.e. simply changing the configuration values in Sitefinity backend you can display only the properties that are returned by the service's ViewModel. You can easily check which are these properties and their values by using web browser developer tools, for example FireBug, and inspect the response from the particular service call.

    On the other hand extension scripts offer much broader scope for modifications, but require more development skills and JavaScript MS AJAX knowledge, so these are a topic fopr anopther discussion. if you are interested in the concept you can review some of the available resources we've published for extension scripts in the backend (blog post 1, blog post 2, blog post 3, blog post 4)

    Now back on the current topic. As we mentioned earlier our goal is to change the value displayed in the Date/Owner column with minimum development effort. By default Sitefinity binds the data value int he Date/Owner column using the DateCreated property of the page. In the ViewModel returned from the PagesService you can find two additional dates available as child properties under the PageLifecycleStatus property - LastModified, and PublicationDate.

    Let's take PageLifecycleStatus.LastModified for example.
    You can go to Sitefinity Backend -> Administration->Settings->Advanced->ContentView->Controls->FrontendPages->Views->FrontendPagesListView -> ViewModes ->TreeTable -> Columns -> DateOwner

    In the list of of properties on the right-hand side of the screen change the ClientTemplate property value from:
    <span> (DateCreated) ? DateCreated.sitefinityLocaleFormat('dd MMM, yyyy hh:mm') : '-' </span>                                   <span class='sfLine'>Owner ? Owner : ''</span>

    to
    <span> (PageLifecycleStatus.LastModified) ? PageLifecycleStatus.LastModified.sitefinityLocaleFormat('dd MMM, yyyy hh:mm') : '-' </span>                                   <span class='sfLine'>Owner ? Owner : ''</span>

    Click on Save Changes and you're done - the Date/Owner column for Pages list view will now display the last modified date of your page data instead of the DateCreated value.

    I hope you found the above information useful.

    Best Regards,
    Boyan Barnev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  • Hi guys,

    I wanted to thank you for letting us know of the need to have such resources available. We have prepared a blog post on the topic, elaborating in a bit more details about this functionality, which is going to be published soon, and we'll start gradually working on a new section for our Documentation covering the different backend modifications that can be done.

    Regards,
    Boyan Barnev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items