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

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


limb2:en:template_system:tags

Limb template system tags

Limb tags are powered by the excelent WACT template engine. Original WACT template engine was modified to meet specific Limb needs. Its a bad, bad thing. WACT will be used as an external library in the future releases (from Limb3)

Some of the tags found in Limb 2_x has no or almost no difference with WACT equivalents. This a Limb2 specific behaviour since WACT engine is not used as an external library.

Core Tags

  • core_block_tag - groups several components into a block. Can also be used to show or hide a portion of the template.
  • core_data_transfer_tag - creates a dataset from a field of the current dataset and transfers it to the target component at runtime.
  • core_dataspace_tag - establishes a new set of variables available to be accessed within the tag contents at runtime.
  • core_optional_tag - outputs some content if a given variable is defined at runtime.
  • core_default_tag - outputs some content if a given variable is not defined at runtime.
  • core_htmlspecialchars_tag - outputs the content of the variable processed by htmlspecialchars() function at runtime.
  • core_include_tag- includes the contents of a file into the current template.
  • core_ip_tag - outputs the content of the variable processed by ip :: decode_ip() function at runtime.
  • core_literal_tag - prevents contents of tag from being parsed.
  • core_parameter_tag - inserts a parameter to the parent component.
  • core_placeholder_tag - present a named location where content can be inserted
  • core_repeat_tag - repeats several times a portion of the template.
  • core_request_transfer_tag - appends stated $_REQUEST parameters(if any) to inner HTML active elements links, form actions etc. at runtime.
  • core_set_tag - set the value of a variable in the current scope
  • core_status_tag - inserts a runtime conditions checking if object's status bit field contains specified value.
  • core_sys_param_tag - outputs a Limb system parameter from sys_param table at runtime.
  • core_wrap_tag - merges the current template with a wrapper template, the current template being inserted into the wrapper at the point where the placeholder tag exists.

Form tags

  • 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.

Fetching tags

  • 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 Tags

User tags

Actions tags

  • 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 tags

Metadata tags

Hint tag

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 tag

Pager tags :

  • <pager:total>
  • <pager:first>
  • <pager:prev>
  • <pager:next>
  • <pager:current>
  • <pager:number>
  • <pager:section>
  • <pager:list>
  • <pager:last>

Обсуждение

Ваш комментарий. Вики-синтаксис разрешён:
  ____  ______   ____     __     __
 / __ \/_  __/  / __/ __ / / __ / /
/ /_/ / / /    / _/  / // / / // / 
\____/ /_/    /_/    \___/  \___/
 
limb2/en/template_system/tags.txt · Последние изменения: 2010/11/10 10:02 (внешнее изменение)