Тэги шаблонной системы Limb
Тэги в Limb реализованы при помощи шаблонной подсистемы WACT. По различного рода историческим причинам разработчикам пришлось модифицировать шаблонный механизм WACT под специфические потребности Limb и включить его в репозиторий. С одной стороны это помогло в развитии 2.x, а с другой стороны ограничило возможности шаблонной подсистемы, т.к текущая CVS версия WACT намного более совершенна. В 3.x WACT используется как внешняя библиотека.
Некоторые тэги в Limb2 почти не отличаются от эквивалентных в WACT.
Базовые тэги
core_block_tag - групирует несколько компонентов в блок. Также может использоваться для отображения или скрытия части шаблона.
core_data_transfer_tag - создает набор данных из одного поля текущего набора данных и пересылает его компоненту-адресату непосредственно во время выполнения (runtime).
core_dataspace_tag - создает новый набор переменных, доступных внутри тегов во время выполнения.
core_optional_tag - выводит некоторые данные, если определенная переменная определена во время выполнения.
core_default_tag - выводит некоторые данные, если определенная переменная не определена во время выполнения.
-
-
core_ip_tag - выводит содержимое переменной, обработанное функцией ip :: decode_ip() во время выполнения.
-
-
-
-
-
core_set_tag - устанавливает значение переменной в данной области видимости.
core_status_tag - вставляет условия runtime-проверки, содержит ли битовое поле статуса объекта определенное значение.
-
core_wrap_tag - объединяет текущий шаблон с шаблоном-оберткой, причем текущий шаблон вставляется в оборотку в точку, где стоит тэг placeholder'а (core:PLACEHOLDER)
Тэги форм
-
-
-
form_status_tag - outputs error or success status tag content if the form was validated.
-
-
action_button_tag - enhanced html button tag that submits a form to the particular action.
-
color_picker_tag - inserts a DHTML color picker element and a text input into the page.
date_tag - inserts a DHTML date picker element and a text input into the page.
file_select_tag - inserts a Limb file select control and hidden input into the page.
image_select_tag - inserts a Limb image select control and hidden input into the page.
node_select_tag - inserts a Limb node select control and hidden input into the page.
-
richedit_tag - inserts a
WYSIWYG editor that replaces text area into the page.
-
js_checkbox_tag - inserts a DHML checkbox and hidden input into the page that always returns its value ('0' or '1').
-
radio_selector_tag - helper tag for <input type='radio| and <label> tags then generating a list of radio boxes.
-
-
-
Тэги для выборки
fetch_one_tag - fetches an object by the path and creates a dataspace with objects fields.
fetch_mapped_tag - fetches the object mapped by the url and creates a dataspace with objects fields.
datasource_tag - generates a dataset and transfers it to the target components.
fetch_sub_branch_tag - extended version of datasource_tag. Performs common fetching operations at the Limb object tree.
Тэги для грида
grid_list_tag - automaticaly generates a list or a table from a dataset.
grid_default_tag - displays content only if the grid dataset is empty at runtime.
grid_iterator_tag - repeats a portion of the template while iterating over the dataset records.
-
grid_stripe_tag - inserts a runtime condition if record is even or odd. Generates content only if the condition is passed.
-
-
-
-
grid_input_tag - generates an input component for every row from the dataset.
-
Тэги пользователя
-
-
-
user_in_groups_tag - outputs some content only if user is participating in at least one of the listed groups at runtime.
user_not_in_groups_tag - outputs some content only if user is not a member of at least one of the listed groups at runtime.
Тэги действий
actions_tag - generates a list of object's actions at runtime.
actions_item_tag - repeats a portion of the template while iterating over actions.
Тэги локализаций
locale_locale_tag - outputs a portion of the template if one of the locale constant's value matches the value of name attribute.
-
-
Тэги метаданных
-
-
-
metadata_charset_tag - outputs the charset meta string at runtime according to MANAGEMENT_LOCALE_ID value
Тэги хинтов (hints)
HintTags :
hint_hint_tag - main hint tag
hint_content_tag - popup window content
hint_link_tag - text of the link
hint_title_tag - title of the popup window
Pager tags :
<pager:total>
<pager:first>
<pager:prev>
<pager:next>
<pager:current>
<pager:number>
<pager:section>
<pager:list>
<pager:last>
Тэги разработчика
Обсуждение