
4754
- 3
- Уровень сложности исполнения: Справочник
Решил сделать шпаргалку по переменным в которые используются в NGcms на TWIGe
1.выводим URL страницы
Код:
{{ currentURL }}
Код:
{{ titles }}
Код:
<title>{{ titles }}</title>
Код:
{{ lang['langcode'] }}
Код:
<html lang={{ lang['langcode'] }}>
Код:
{{ lang['encoding'] }}
Код:
<meta charset={{ lang['encoding'] }}>
Код:
{{ what }} {{ version }}
Код:
<meta name=generator content="{what} {version}" />
Код:
{{ tpl_url }}
Код:
<img src="{{ tpl_url }}/images/rss.png"/>
Код:
{{ scriptLibrary }}
Код:
{{ home}}
Код:
{{ mainblock }}
Код:
{{ search_form }}
Код:
{{ personal_menu }}
Код:
{{ callPlugin('xnews.show', {'order' : 'viewed', 'count': '10', 'template' : 'xnews1'}) }}
Код:
{{ voting }}
Код:
{{ htmlvars }}
Код:
{% include "slider.tpl" %}
Код:
{{ callPlugin('calendar.show') }}
Код:
{{ callPlugin('archive.show', {'maxnum' : 12, 'counter' : 1, 'template': 'archive', 'cacheExpire': 60}) }}
Код:
{{ callPlugin('top_active_users.show', {'number' : 12, 'mode' : 'news', 'template': 'top_active_users', 'cacheExpire': 60}) }}
Код:
{{ home_title }}
Код:
[debug]
{debug_queries}<br/>{debug_profiler}
[/debug]
Код:
[sitelock]...[/sitelock]
Код:
{queries}
Код:
{exectime}
Код:
{memPeakUsage}
Код:
{{ category }}
Код:
{{ news.url.full }}
Код:
{{ news.title }}
Код:
{{ news.date }}
Код:
{{ news.author.url }}
Код:
{{ news.author.name }}
Код:
{{ news.short }}
Код:
{{ news.views }}
Код:
{{ tags }}
Код:
{comments-num}
Код:
{{ plugin_rating }}
Код:
{{ plugin_similar_tags }
Код:
{{ plugin_comments }}
Код:
{{ admin_url }}
Код:
{{ addnews_link }}
Код:
[if-have-perm]...[/if-have-perm]
Код:
{{ profile_link }}
Код:
{{ p.pm.link }}
Код:
{{ p.pm.total }}
Код:
{{ p.pm.new }}
Код:
{{ logout_link }}
Код:
{{ news.full }}
Код:
{{ categories }}
Код:
{% if (news.flags.canEdit) %}<a href="{{ news.url.edit }}">редактировать</a>{% endif %}
Код:
[del-news]Удалить[/del-news]
Код:
{{ category.name }}
Код:
{{ category.icon.purl }}
Код:
{{ category.info }}
Код:
{{ pagination }}
Код:
{{ news.update }}
Код:
{{ news.categories.masterText }}
Код:
{{ news.pagination }}
Можешь почитать и вот эту статейку "Модальное окно с фреймом"
Это тоже интересно
- 14.08.17Пишем файл main.tpl
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]