N1 Nex1on

Forum

What you can insert into a template from the “Forum” module: blocks and lists with parameters and examples.

Discussions on the home page — forum.home

Discussions on the home page: the freshest forum topics with author and time of the last reply. Kind: block; works on any page.

Example:

{block:forum.home}

Latest discussions — forum.latest

Side-column “Latest discussions”: forum topics as short links. Kind: block; works on any page.

Example:

{block:forum.latest}

Forum sections (list) — forum.sections

A list of forum sections with topic counts and the latest topic — for a menu or a sidebar: title, link, description, number of topics and posts. Kind: list for your own markup; works on any page.

ParameterMeaningDefault
limitHow many to show. From 1 to 50.20
parentSubsections: empty — top level, a section address — its subsections, all — every one

Inside the list: {item.id} {item.title} {item.url} {item.description} {item.count} {item.posts} {item.last_title} {item.last_url} {item.last_who} {item.last_date}.

Example:

[each:list:forum_sections]
  <a href="{item.url}">{item.title}</a> ({item.count})
[/each]

Latest topics — forum.topics

A list of the latest forum topics for your own markup: title, address, author, date, section. Kind: list for your own markup; works on any page.

ParameterMeaningDefault
limitHow many to show. From 1 to 20.5
sortOrder: fresh — by last reply, new — newest, popular — most viewed, unanswered — without replies Values: fresh, new, popular, unanswered.fresh
sectionSection: address or number (empty — all)

Inside the list: {item.id} {item.title} {item.url} {item.who} {item.date} {item.section} {item.section_url} {item.replies} {item.views} {item.last_who} {item.last_date} {item.avatar} {item.initials} {item.created} {item.pinned} {item.closed} {item.solved}.

Example:

[each:list:forum_topics:limit:5:sort:popular]
  <a href="{item.url}">{item.title}</a> — {item.replies}, {item.last_who}, {item.last_date}
[/each]

Обновлено 16.10.2026

На этой странице
Поделиться: Telegram WhatsApp
Откладывать можно и без входа: закладки сохранятся в этом браузере, а после входа их можно перенести в учётную запись. Вход
Обсуждение

Комментарии

Обсуждение ещё не началось

Пока никто не высказался. Будьте первым.

Пожаловаться на запись