News
What you can insert into a template from the “News” module: blocks and lists with parameters and examples.
Archive by month — news.archive
Months that have entries, with the number of entries. Kind: list for your own markup; works on any page.
| Parameter | Meaning | Default |
|---|---|---|
limit | How many to show (within the bounds given in the type). From 1 to 60. | 12 |
Inside the list: {item.title} {item.url} {item.count}.
Example:
[each:list:news_archive:limit:12]
<a href="{item.url}">{item.title}</a> ({item.count})
[/each]"Archive" block — news.archive_box
Ready archive-by-month block. Kind: block; works on any page.
Example:
{block:news.archive_box}Calendar block — news.calendar_box
Month calendar: days with posts link to that day's archive; the month follows the archive page, elsewhere it is the latest month with posts. Empty if the calendar is off in News → Settings. Kind: block; works on any page.
Example:
{block:news.calendar_box}Categories as a tree — news.categories
Categories with entry counts, nesting level and a mark for the current one. Kind: list for your own markup; works on any page.
Inside the list: {item.title} {item.url} {item.count} {item.active} {item.level} {item.parent} {item.id} {item.has_children} {item.description} {item.icon} {item.count_text}.
Example:
[each:list:news_categories]
<a href="{item.url}" class="l{item.level}">{item.title}</a> {item.count}
[/each]Latest comments — news.comments
Fresh comments on entries (a password-protected entry is not shown). Kind: list for your own markup; works on any page.
| Parameter | Meaning | Default |
|---|---|---|
limit | How many to show (within the bounds given in the type). From 1 to 30. | 5 |
cat | Category numbers joined by "_" (nested ones are included). | — |
days | For how many last days. From 1 to 3650. | — |
sort | Order: newest first (default) or oldest first. Values: new, old. | new |
cache | Remember the result for guests for this many seconds (up to 3600): faster on busy pages. From 1 to 3600. | — |
Inside the list: {item.name} {item.text} {item.url} {item.date} {item.title} {item.avatar}.
Example:
[each:list:news_comments:limit:5]
<b>{item.name}</b>: {item.text} — <a href="{item.url}">{item.title}</a>
[/each]Number — news.count
The number of entries, comments or people for all time, a day, a week or a month. Kind: number or text; works on any page.
| Parameter | Meaning | Default |
|---|---|---|
what | What to count: entries or comments. Values: news, comments. | news |
period | Over which period: all time, day, week, month. Values: all, day, week, month. | all |
Example:
Posts this week: {block:news.count what=news period=week}"Feed" block — news.feed_box
Ready block with a short list of entries. Kind: block; works on any page.
Example:
{block:news.feed_box}Entries with a filter — news.latest
A list of entries for your own markup: by category, author, tag, last N days, with order and count. Kind: list for your own markup; works on any page.
| Parameter | Meaning | Default |
|---|---|---|
limit | How many to show (within the bounds given in the type). From 1 to 30. | 5 |
start | Which entry to start from. From 0 to 500. | 0 |
cat | Category numbers joined by "_" (nested ones are included). | — |
user | Author number. From 1 to 999999999. | — |
days | For how many last days. From 1 to 3650. | — |
tag | Tag number. From 1 to 999999999. | — |
main | 1 — only entries "on the home page". | — |
exclude | Post IDs joined by _ to leave out. | — |
id | Only these posts: IDs, comma-separated. | — |
fixed | 1 — pinned only, 0 — without pinned. Values: 1, 0. | — |
cover | 1 — with a cover only, 0 — without one. Values: 1, 0. | — |
poll | 1 — with a poll only, 0 — without a poll. Values: 1, 0. | — |
custom | Name of a custom post field: show only posts where it is filled in. | — |
is | Exact value of the “custom” field: show only posts with that value. | — |
cache | Remember the result for guests for this many seconds (up to 3600): faster on busy pages. From 1 to 3600. | — |
sort | Order: new, old, title, views, rating, rand. Values: new, old, title, views, rating, rand, updated. | new |
Inside the list: {item.id} {item.title} {item.url} {item.excerpt} {item.date} {item.cover} {item.cover_large} {item.category} {item.category_url} {item.by} {item.views} {item.rating} {item.rating_count} {item.comments} {item.pinned} {item.locked} {item.first}.
Example:
[each:list:news_latest:cat:3:sort:views:limit:5]
<a href="{item.url}">{item.title}</a> <small>{item.date}</small>
[/each]"Latest news" block — news.latest_box
Ready sidebar block: the latest entries. Kind: block; works on any page.
Example:
{block:news.latest_box}Letters of the A–Z catalog — news.letters
A strip of letters (and digits) for the A–Z catalog: each has an anchor address on the catalog page and a post count. For your own layout of the strip above a list. Kind: list for your own markup; works on any page.
Inside the list: {item.letter} {item.url} {item.count} {item.title}.
Example:
[each:list:news_letters]
<a href="{item.url}" title="{item.count}">{item.letter}</a>
[/each]RSS button — news.rss
A link to the RSS feed (if the feed is on). Kind: button; works on any page.
Example:
{block:news.rss}"Suggest an entry" button — news.suggest
A link to the form for suggesting an entry (if it is on). Kind: button; works on any page.
Example:
{block:news.suggest}Tag cloud — news.tags
Tags with entry counts and a weight of 1–5 (for font size). Kind: list for your own markup; works on any page.
| Parameter | Meaning | Default |
|---|---|---|
limit | How many to show (within the bounds given in the type). From 1 to 100. | 30 |
Inside the list: {item.title} {item.url} {item.count} {item.weight}.
Example:
[each:list:news_tags:limit:30]
<a href="{item.url}" class="w{item.weight}">{item.title}</a>
[/each]Обновлено 16.10.2026
Пока никто не высказался. Будьте первым.