Инструменты пользователя

Инструменты сайта


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.

Тэги для грида

Тэги пользователя

Тэги действий

  • actions_tag - generates a list of object's actions at runtime.
  • actions_item_tag - repeats a portion of the template while iterating over actions.

Тэги локализаций

Тэги метаданных

Тэги хинтов (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 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 (внешнее изменение)