Changes between Version 7 and Version 8 of collective.stickyitem
- Timestamp:
- Feb 2, 2011 3:12:44 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
collective.stickyitem
v7 v8 16 16 After product installation all newsitems get a new field - '''Sorting date'''. This field allows to sort newsitems in a listing according to the date/time specified in this field. 17 17 18 [[Image(sorting-date.png, nolink)]]19 20 21 18 * If sorting date is NOT set - newsitems are sorted by their effective date as in default Plone. 22 19 * If sorting date IS set - newsitems are sorted by this date. 23 20 24 21 This field can be used in cases when you don't want to change object's effective date, but need to make is appear as the first in the listing. 22 23 [[Image(sorting-date.png, nolink)]] 25 24 26 25 === Example === … … 30 29 [[Image(news.png, nolink)]] 31 30 32 If now we want ''' NewsItem 2''' to appear at the top of the listing - we edit this newsitem and set the most recent date (e.g. the time/date we have now) as its '''Sorting Date''':31 If now we want '''!NewsItem 2''' to appear at the top of the listing - we edit this newsitem and set the most recent date (e.g. the time/date we have now) as its '''Sorting Date''': 33 32 34 33 [[Image(newsitem2.png, nolink)]] 35 34 36 As a result ''' NewItem 2''' will be displayed on top of News listing, while its location in the News portlet remained unchanged (news portlets item sorting remained unchanged - according to the effective date)35 As a result '''!NewItem 2''' will be displayed on top of News listing, while its location in the News portlet remained unchanged (news portlets item sorting remained unchanged - according to the effective date) 37 36 38 37 [[Image(news-sort.png, nolink)]]