Help sections
- Installation in three steps
Site setup
- Email and site letters
- SEO, sitemap and quality check
- Redirects from old addresses
- Site menu
- Languages and translations
- Site languages: add, turn on, update, delete
- Site address: what it is and how to fix a wrong one
- Hosting without internet access: what it means and what to ask support
- Debug mode and the PHP time limit: where to change them
- A refused form keeps the text; what to do if a visitor says “the form does not send”
- Site feeds and maps
Maintenance and add-ons
- The trash: bringing back what was deleted
- Installing a module or theme from an archive
- Restoring a site from a copy during installation
- Action log archive
- UTM tags in traffic
- How to clear out old orders
- Member trust levels
- Add-on catalog: modules and themes from our server
- Mailing segments
- Mail bounces and the bounce mailbox
- Themes: choose, preview, apply a look, undo
- Modules: enable, disable and what to do about dependencies
- Backups: make, download, restore, keep elsewhere
- Theme on tags: the “Side column” sample
- Tags in the news entry template
- The site’s main template on tags
- Error reports to the developer
- Views on tags: which pages a theme file can replace
- Moving the site to another address (domain)
- Views on tags: form in parts, discussion and paging
- Cleaning up old material
- Lists on tags: selection, archive, labels, categories and site counters
- Downloads and banners on tags
- Insert catalog, extra fields and informers on tags
- Private messages, feedback and «Suggest a post» on tags
Downloads and banners on tags
How to replace the Downloads catalog and entry page with theme files, make a template for a category, and place a banner or a whole place with one tag.
A template for a category
News, Downloads, the forum (a section) and the shop (a category) tell the engine the category of the page: the category address in Latin letters, digits and hyphen, up to 40 characters. Then the file <view>.<category-address>.tpl.html (for example views/news/show.tech.tpl.html or views/forum/section.api.tpl.html) is taken before the general <view>.tpl.html; other categories keep the general one.
The module also passes the page category description (plain text) to the shared page data; the core provides the {category.description} tag. Text cutting in post tags: limit=N characters, words=N words, wordsafe=1 — at a word boundary.
Downloads on tags
The theme files views/downloads/index.tpl.html (catalog and category) and views/downloads/show.tpl.html (entry page) replace the module's PHP views. Downloading still goes through the engine's usual addresses: the counter, access limits and passwords work as before.
| View | Tag | What it prints |
|---|---|---|
| catalog | [each:cards] | entries: {item.title} {item.url} {item.description} {item.version} {item.date} {item.cover} {item.category} {item.category_url} {item.hits} {item.get_url} {item.get_label} {item.first} |
| catalog | [each:rubrics] | categories: {item.title} {item.url} {item.count} {item.active} |
| catalog | {category.title} {category.url} {category_description} {pager} {t.empty} | the page category (from the frame), its description, paging, the word «empty» |
| entry | {item.title} {item.description} {item.version} {item.hits} {item.changelog} {item.requirements} {date} {cover} {cover_large} | the entry itself |
| entry | {category.title} {category.url} {files.count} [if:allow_download] | category, number of files, «there is something to download» |
| entry | [each:files] | files: {item.name} {item.url} (download address) {item.platform} {item.arch} {item.size} {item.ext} {item.hits} {item.primary} {item.external} (host of an external link) |
| entry | [each:sums] | checksums: {item.name} {item.checksum} — to verify the download |
An entry page example:
<h1>{item.title}</h1><p>v{item.version} · {date} · downloaded {item.hits}</p>
[if:allow_download]
[each:files]<p><a href="{item.url}">{item.name}</a> {item.platform} {item.arch} {item.size} ↓{item.hits}</p>[/each]
[/if]
<h2>What is new</h2><p>{item.changelog}</p>
<h2>Requirements</h2><p>{item.requirements}</p>
[each:sums]<code>{item.name}: {item.checksum}</code>[/each]Banners on tags
In any tag file a banner is placed by number or as a whole place. The display rules are the same as for ordinary banners: period, schedule, device, pages, roles, countries, «first page only».
| Tag | What it prints |
|---|---|
{banner:5} | banner number 5 (the number is in the panel's banner list) |
{banner_place:sidebar} | all banners of the place |
Places: topbar, header, before_content, sidebar, after_content, footer, between_feed (between feed posts), between_comments (between comments).
The places between_feed and between_comments are drawn by the news and comments views themselves: a banner goes after every third feed post and after every fifth comment. In the panel a banner has roles (guest — a guest), countries (RU, UA — only there; -BY — everywhere except) and «first page of the section only». A page with such a banner does not go to the shared cache: the answer depends on the viewer.