N1 Nex1on

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.

ParameterMeaningDefault
limitHow 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.

ParameterMeaningDefault
limitHow many to show (within the bounds given in the type). From 1 to 30.5
catCategory numbers joined by "_" (nested ones are included).—
daysFor how many last days. From 1 to 3650.—
sortOrder: newest first (default) or oldest first. Values: new, old.new
cacheRemember 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.

ParameterMeaningDefault
whatWhat to count: entries or comments. Values: news, comments.news
periodOver 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.

ParameterMeaningDefault
limitHow many to show (within the bounds given in the type). From 1 to 30.5
startWhich entry to start from. From 0 to 500.0
catCategory numbers joined by "_" (nested ones are included).—
userAuthor number. From 1 to 999999999.—
daysFor how many last days. From 1 to 3650.—
tagTag number. From 1 to 999999999.—
main1 — only entries "on the home page".—
excludePost IDs joined by _ to leave out.—
idOnly these posts: IDs, comma-separated.—
fixed1 — pinned only, 0 — without pinned. Values: 1, 0.—
cover1 — with a cover only, 0 — without one. Values: 1, 0.—
poll1 — with a poll only, 0 — without a poll. Values: 1, 0.—
customName of a custom post field: show only posts where it is filled in.—
isExact value of the “custom” field: show only posts with that value.—
cacheRemember the result for guests for this many seconds (up to 3600): faster on busy pages. From 1 to 3600.—
sortOrder: 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.

ParameterMeaningDefault
limitHow 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]

Updated 16.10.2026

On this page
Share: Telegram WhatsApp
You can save things without signing in: they stay in this browser and you can move them to your account after signing in. Sign in
Discussion

Comments

No discussion yet

No one has commented yet. Be the first.

Report this post