sorting content by date
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2010 08:30 AM
Hi,
all content in the folders is sorted alphabetically. How can I configure Alfresco to sort the content in a folder by date, so that the newest content documents are listed on the top in the folder.
What is the easiest way to do it without big programming I hope?
Thanks for your Help
all content in the folders is sorted alphabetically. How can I configure Alfresco to sort the content in a folder by date, so that the newest content documents are listed on the top in the folder.
What is the easiest way to do it without big programming I hope?
Thanks for your Help
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2010 10:39 AM
open /alfresco/jsp/browse/browse.jsp
find <a:richList id="spacesList" binding="#{BrowseBean.spacesRichList}"
viewMode="#{BrowseBean.browseViewMode}"
pageSize="#{BrowseBean.pageSizeSpaces}" styleClass="recordSet"
headerStyleClass="recordSetHeader" rowStyleClass="recordSetRow"
altRowStyleClass="recordSetRowAlt" width="100%"
value="#{BrowseBean.windowsView}" var="r"
initialSortColumn="created">
THIS SHOULD TO IT.
find <a:richList id="spacesList" binding="#{BrowseBean.spacesRichList}"
viewMode="#{BrowseBean.browseViewMode}"
pageSize="#{BrowseBean.pageSizeSpaces}" styleClass="recordSet"
headerStyleClass="recordSetHeader" rowStyleClass="recordSetRow"
altRowStyleClass="recordSetRowAlt" width="100%"
value="#{BrowseBean.windowsView}" var="r"
initialSortColumn="created">
THIS SHOULD TO IT.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2010 01:22 PM
Many thanks!
It works but the code what you posted just sorts the spaces.
To sort the files in the spaces you
have to change the contentRichList not the spacesList
and to get descending order (=newest file first)
it has to be
It works but the code what you posted just sorts the spaces.
To sort the files in the spaces you
have to change the contentRichList not the spacesList
and to get descending order (=newest file first)
it has to be
<a:richList id="contentRichList" binding="#{BrowseBean.contentRichList}" viewMode="#{BrowseBean.browseViewMode}" pageSize="#{BrowseBean.pageSizeContent}"styleClass="recordSet" headerStyleClass="recordSetHeader" rowStyleClass="recordSetRow" altRowStyleClass="recordSetRowAlt" width="100%"value="#{BrowseBean.content}" var="r" initialSortColumn="created" initialSortDescending="true">

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2010 02:40 PM
I know, we have one list with files and spaces, like in windows to names are different but logic is the same about sorting.
