limb2:ru:template_system:tags
Содержание
Тэги шаблонной системы 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_htmlspecialchars_tag - выводит содержимое переменной, обработанное функцией htmlspecialchars() во время выполнения.
- core_include_tag- включает содержимое файла в текущий шаблон.
- core_ip_tag - выводит содержимое переменной, обработанное функцией ip :: decode_ip() во время выполнения.
- core_literal_tag - предотвращает парсинг содержимого тега.
- core_parameter_tag - добавляет параметр к родительскому компоненту.
- core_placeholder_tag - представляет именованное место, куда можно вставить данные.
- core_repeat_tag - повторяет часть шаблона несколько раз.
- core_request_transfer_tag - присоединяет определенные параметры $_REQUEST внутреннему HTML элементов.
- core_set_tag - устанавливает значение переменной в данной области видимости.
- core_status_tag - вставляет условия runtime-проверки, содержит ли битовое поле статуса объекта определенное значение.
- core_sys_param_tag - выводит параметр LIMB из таблицы sys_param во время выполнения.
- core_wrap_tag - объединяет текущий шаблон с шаблоном-оберткой, причем текущий шаблон вставляется в оборотку в точку, где стоит тэг placeholder'а (core:PLACEHOLDER)
Тэги форм
- form_tag - enhanced html form tag.
- control_tag - ancestor tag class for input controls.
- form_errors_tag - transfers errors dataset to the target component
- form_status_tag - outputs error or success status tag content if the form was validated.
- form_error_status_tag - outputs a portion of the template only if the form has error status.
- form_success_status_tag - outputs a portion of the template only if the form has success status.
- action_button_tag - enhanced html button tag that submits a form to the particular action.
- button_tag - enhanced html button tag.
- 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.
- text_area_tag - enhanced html text area tag.
- richedit_tag - inserts a WYSIWYG editor that replaces text area into the page.
- input_tag - enhanced html input tag.
- js_checkbox_tag - inserts a DHML checkbox and hidden input into the page that always returns its value ('0' or '1').
- label_tag - enhanced html label tag.
- radio_selector_tag - helper tag for <input type='radio| and <label> tags then generating a list of radio boxes.
- request_state_tag - preserves the state of a variable in a hidden field.
- select_tag - enhanced html select tag.
- selector_tag - enhanced html input checkbox tag.
Тэги для выборки
- 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_separator_tag - generates some content through several iterations.
- grid_stripe_tag - inserts a runtime condition if record is even or odd. Generates content only if the condition is passed.
- grid_tree_item_tag - displays tree node item and connections between items at runtime
- grid_site_map_tree_item_tag - simplified version of grid_tree_item_tag.
- grid_selector_tag - generates a checkbox for every row from the dataset at runtime.
- grid_selectors_toggler_tag - generates a special button by clicking on that you can check or uncheck all certain grid selectors.
- grid_input_tag - generates an input component for every row from the dataset.
- grid_button_tag - generates a button for the grid form.
Тэги пользователя
- user_attribute_tag - outputs user attribute at runtime.
- user_logged_in_tag - outputs some content only if user is logged in at runtime
- user_not_logged_in_tag - outputs some content only if user is not logged in at runtime
- 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.
- locale_string_tag - outputs a localized string at runtime.
- locale_date_format_tag - outputs a formatted date at runtime.
Тэги метаданных
- metadata_metadata_tag - generates a dataspace that contains mapped object's metadata.
- metadata_title_tag - outputs the full title of the mapped object at runtime.
- metadata_breadcrumbs_tag - automatically generates breadcrumbs for an object.
- 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>
Тэги разработчика
- dev_dataspace_tag - выводит содержание текущего DataSpace.
limb2/ru/template_system/tags.txt · Последнее изменение: 2010/11/10 10:02 — 127.0.0.1

Обсуждение