Einige durch Komma getrennte Tags werden mit logischem AND zwischen ihnen behandelt. Du kannst auch das Semikolon als logischen OR-Interpreter benutzen. AND hat Priorität über OR und du kannst keine Einklammerungen für logische Gruppierungen nutzen. Stern (*) wird als Maske für "Jede Zeichenkette" genutzt.
Sektionen: Documentation / Quick help & how-to's
By default, dates and times in Cotonti are formatted in a preconfigured way. While this works out fine in most cases, sometimes you will want to use a different format in your theme. Cotonti provides a simple way to achieve this using CoTemplate callbacks.
{PAGE_ROW_DATE_STAMP|cot_date('d-m-Y', $this)}
The cot_date()
function is very similar to the regular date function in PHP, with the addition of localized date formats. These formats are defined in $Ldt in main.en.lang.php. It's recommended...
Sektionen: Documentation / Extending Cotonti / Themes
This document covers features, statements and their syntax supported by CoTemplate v.2.7 and later.
Blocks are the largest elements in the template's structure. Templates consist of blocks, blocks consist of other blocks, statements, tags and raw text. Here is the block syntax:
<!-- BEGIN: BLOCK_NAME --> Block HTML contents here <!-- END: BLOCK_NAME -->
Most templates have one root-level block named MAIN, but multiple root-level blocks in one template file are allowed. HTML...
Sektionen: Documentation / Extending Cotonti / Themes
Much of Cotonti's flexibility is derived from it's templating engine CoTemplate (previously known as XTemplate). Recent additions to the engine include nested logic blocks (conditionals and loops) and callbacks. Simple IF statements will be familiar to most developers, but there's more than just the regular equals comparison. Here's an overview of what's possible:
Name | Operator | Description |
---|---|---|
Equal | == | Values are equal |
Not Equal | != | Values are not equal |
Identical | === | Values are equal, and... |
Sektionen: Download
What's new in 0.6.17
lang/en/admin.lang.php lang/ru/admin.lang.php core/message/message.inc.php core/admin/admin.page.structure.inc.php functions.php
Sektionen: Documentation / Extending Cotonti / Themes
Since Cotonti 0.9.1 a new set of debugging facilities is available to template designers.
The first one is block/tags listing mode. It outputs a plain tree of blocks and assigned tags in them for the current page. Example:
To get such a debug page, you need to make sure debug_mode is enabled for your Cotonti instance first. Open datas/config.php and make sure you have debug_mode enabled:
$cfg['debug_mode'] = TRUE;
Then you can see a TPL dump of any page by simply appending tpl_debug=1...
Sektionen: Foren / Cotonti / Development
Sektionen: Foren / National / Russian / Скины и дизайн
Sektionen: Foren / Cotonti / Support
Sektionen: Foren / National / Russian / Тех. поддержка
Sektionen: Foren / National / Russian / Тех. поддержка
Sed121 использует старый шаблонизатор.
Возможно ли заменить в этой версии движка старый шаблонизатор на новый
...Sektionen: Foren / National / Russian / Тех. поддержка
Можно ли разобрать значение тега в списке аргументов пользовательской функции?
Т.е. возможна ли такая конструкция: