Virgülle ayrılmış birden fazla etiket, aralarında mantıksal VE (AND) olarak değerlendirilir. Noktalı virgül, mantıksal VEYA (OR) olarak kabul edilir. AND, OR üzerinde önceliğe sahiptir ve mantıksal gruplama için parantez kullanılamaz. Bir etiketteki yıldız (*) işareti, "herhangi bir dize" anlamında bir joker karakterdir.
Bölümler: Döküman / Cotonti Geliştirme / Temalar
0.9.1 Cotonti'den beri Şablon tasarımcıları için yeni bir dizi hata ayıklama olanağı mevcuttur. Bunlardan ilki blok/etiket listeleme modudur.
Geçerli sayfa için düz bir blok ağacı ve bunlara atanmış etiketler çıktısı verir. Örnek:
Böyle bir hata ayıklama sayfası elde etmek için öncelikle Cotonti örneğiniz için debug_mode
'un etkinleştirildiğinden emin olmanız gerekir. datas/config.php
dosyasını açın ve debug_mode'un etkin olduğundan emin olun:
$cfg['debug_mode'] = TRUE;
Ardından, sayfanın...
Bölümler: 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...
Bölümler: 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...
Bölümler: 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... |
Bölümler: 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
Bölümler: 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...