Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/webjetcms/webjetcms/llms.txt

Use this file to discover all available pages before exploring further.

The News application inserts a list of web pages from a specified folder into a page. It is commonly used for news, press releases, and similar listings such as contact points or product lists.

Managing news articles

The news list in the administration is located in the Posts > News menu. It looks similar to the web pages list but without a tree structure. At the top you can select the folder whose news you want to display. Clicking on a news article title opens the same editor as the standard page editor, where you can edit the title, perex (annotation), body text, image, and publication dates.
The folder selector is populated automatically by scanning page bodies for embedded News applications, or you can configure it manually using the newsAdminGroupIds configuration variable.

Embedding the News app on a page

To embed the News application on a web page, open the page in the editor and insert the News application. The dialog has the following tabs.

Application parameters

  • Directory — select the folder (or folders) from which news articles will be loaded.
  • Include subdirectories — also loads news from subfolders of the selected directories.
  • Depth of subfolders — maximum subfolder search depth when loading from subfolders. A value less than 1 means no limit.
  • Exclude main folder pages — excludes the main page of each subfolder from the news list (useful when subfolders each have their own list page).
The Types of pages field controls which articles are shown based on their publication validity dates:
OptionDescription
CurrentOnly articles whose validity range includes today
OldArticles whose end date is in the past (archive)
AllAll articles regardless of dates
NextArticles with a future publication start date
Currently validArticles with a filled start date whose range is valid at the current date and time
  • Arrange by — sort articles by: Priority, Date of start of publication, Date of the event, Date of last change, Page title, Places, Page ID, or Rating.
  • Ascending — reverses the sort order (oldest to newest by default).
  • Pagination — shows page navigation when the number of articles exceeds the page limit.
  • Number of items on the page — how many articles to show per page. Without pagination enabled, this caps the total number loaded (useful for “latest 3 news” widgets on a homepage).
  • Skip the first — skips a number of records from the start of the list (useful when two News apps on the same page show different sets of articles).
  • It is not necessary to fill in the perex — by default only articles with a filled perex are shown; check this to also include articles without one.
  • Loading with page text — loads the full page body text for use in templates. Slower and more demanding on the database.
  • Check for duplication — when multiple News apps appear on the same page, prevents the same article from appearing more than once.
  • Main page view mode — controls whether the main pages of subfolders are included or excluded from the list.

Template

The Template tab lets you choose the visual style used to render the news list. If you have the appropriate permissions, you can also create new templates or edit existing ones.

Perex groups

Use the Perex Groups tab to filter news by perex group — for example, to show only articles tagged as “Top News” in a featured section, and then exclude that group from the main news list below to avoid duplicates.
  • Show only selected perex groups — restricts the list to articles in the chosen group(s).
  • Do not show selected perex groups — excludes articles from the chosen group(s).

Filter

The Filter tab provides advanced filtering based on database field values. Multiple conditions are combined with AND logic.

News (quick edit)

The News tab inside the app dialog shows the list of articles loaded from the configured directories. You can edit article titles, photos, and text directly, or create a new article without leaving the page editor.

News calendar integration

The News calendar application works together with the News application. When a visitor selects a date in the calendar, the linked News list automatically filters to show only articles whose publication start date matches the selected date.
1

Insert the News calendar app

Add the News calendar application to your page first.
2

Insert the News app

Insert the News application directly after the calendar on the same page.
3

Set the same folder

Both applications must point to the same news folder. The first News app on the page is automatically linked to the calendar.
If the News and News calendar applications point to different folders, the calendar filtering will not work correctly.

URL-based search and filtering

The News application supports filtering articles via URL parameters, allowing visitors to filter results by category, date range, keyword, or any other field. The format is:
search[fieldName_searchType]=value
For example, to filter articles whose title contains “finance”:
/news/?search%5Btitle_co%5D=finance
Available search types:
CodeMeaning
eqExact match
gtGreater than
geGreater than or equal
leLess than or equal
ltLess than
swStarts with
ewEnds with
coContains
swciaiStarts with (case and diacritics insensitive)
ewciaiEnds with (case and diacritics insensitive)
cociaiContains (case and diacritics insensitive)
Multiple search parameters can be combined; all conditions are joined with AND.
Some servers reject the literal [] characters in URLs. Use URL encoding instead: [%5B, ]%5D.

Build docs developers (and LLMs) love