форум общения русскоязычных пользователей CMS Текстпаттерн
Вы не зашли.
Можно ли в ТХР, сделать так чтобы первая написанная статья была первой при отображении в категории,
все последующие шли далее, спасибо
Отредактированно Gipo (16-04-2007 11:47:52)
Неактивен
Да. Можно попробовать сортировку, либо опубликовать ее с самой поздней датой. Wiki с тегами сейчас недоступна, чуть позже обратите внимание на параметр сортировки - http://textbook.textpattern.net/wiki/in … ag_Listing
Неактивен
С самой поздней датой не публикуется
Неактивен
"Завтрашняя" статья появится только завтра.
Syntax
The article tag has the following syntactic structure...
<txp:article />
Attributes
Tag will accept the following attributes, which can be used individually or in combination as needed (note: attributes are case sensitive):
form="form name"
Use specified form. Default is default. See Form.
listform="form name"
Use specified form when page is displaying an article list.
sortby="sort by"
Sort retrieved articles. Available values: ID (article id#), AuthorID (author), LastMod (date last modified), LastModID (author of last modification), Posted (date posted), Title, Category1, Category2, comments_count, Status, Section, Keywords, Image (article image id#), and custom_1 through custom_10. Please note that multiple attributes can be used, separated with a comma. You can also sort by date then category (details SQL calls that sortby accepts)
sortdir="sort direction"
Sort direction of retrieved articles. Available values: asc (first to last), or desc (last to first).
и т.д.
Неактивен
PolyGon написал:
"Завтрашняя" статья появится только завтра.
не всегда. Справедливо только для случаев, когда атрибут time="past". Если этот атрибут не указан, то он ="past" по умолчанию.
для всех статей - и прошлых и будущих надо установить в txp:article time="any"
time="value"
Restrict by time and date posted. Available values: past, future, or any (both past and future). Default is past.
Неактивен
Таки, в данном случае, проще отсортировать статьи от самой старой к самой новой, чем придумывать самую новую дату
Неактивен