N1 Nex1on

Страница

Your own 404 and any page as a theme file

How to redo any page of the site by creating one file in the theme folder, with no panel and no PHP.

One file, one page

Put a file ending in `.tpl.html` into your theme folder and the page uses it at once. The file is written in engine tags (plain HTML plus tags), no PHP needed. If the file is missing or has an error, the engine draws the page itself and the site keeps working.

Example: your own 404 page

  • List the files you can replace: `php nex1on theme:files my-site`.
  • Create a file with ready-made tags: `php nex1on theme:file my-site errors/404`.
  • Open `themes/my-site/views/errors/404.tpl.html`, change the markup, reload the page.
The header, footer, sidebar, full article, search, sign-in, account and other pages are replaced the same way. In the panel the same thing is «Appearance → Theme code» (turned on by the site owner with a password).

Обновлено 18.10.2026

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

Комментарии

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

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

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