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
Hello,
Hi,
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
>
<
span
> (PageLifecycleStatus.LastModified) ? PageLifecycleStatus.LastModified.sitefinityLocaleFormat('dd MMM, yyyy hh:mm') : '-' </
span
> <
span
class
=
'sfLine'
>Owner ? Owner : ''</
span
>
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