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
- 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 tags
- 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 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
- 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 tags
- 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
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: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 — 127.0.0.1

Обсуждение