web:modx:revolution:tag
MODxタグ
MODxが使用するタグフォーマット
エレメント | 書式 | evolution(Old) | 例 |
---|---|---|---|
Resource Fields | [[*Resource]] | [[*Resource]] | |
テンプレート変数 | [[*templatevar]] | [*templatevar*] | |
チャンク | [[$chunk]] | {{chunk }} | [[$chunk? &name=`George` &msgCnt=`12`]] |
スニペット | [[snippet]] | ← | |
プレースホルダー | [[+placeholder]] | [+placeholder+] | |
リンク | [[~link]] | [~link~] | [[~[[*id]]? &scheme=`full`]] |
システム設定 | [[++system_setting]] | [(system_setting)] | |
言語 | [[%language_string_key]] | 新設 | |
コメント | [[-this is a comment]] | 新設 |
キャッシュしないようにするには[[!snippet]]、[[!$chunk]]、[[!+placeholder]]のように!を付加する。
Timing Tag
[^qt^] | Query Time | Shows how long MODx took talking to the database |
[^q^] | Query Count | Shows how many database queries MODx made |
[^p^] | Parse Time | Shows how long MODx took to parse the page |
[^t^] | Total Time | Shows the total time taken to parse/ render the page |
[^s^] | Source | Shows the source of page, whether is database or cache. |
Query Time: [^qt^] Request: [^q^] PHP Exec: [^p^] Total time: [^t^]
<!– modx - database: [^qt^], [^q^] queries, application: [^p^], total: [^t^], source: [^s^] –>
参考例
書式 | 内容 |
---|---|
[[~[[*id]]]] | 現在のページへのLink |
web/modx/revolution/tag.txt · 最終更新: 2017/04/14 05:21 by 127.0.0.1