Skip to the content
Documentation

Recent changes

Recent ratings Recently added Recent comments Atom feed

9596 changed pages

Wednesday November 04 2026

  1. Fetch basics Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    How templates read data with fetch( module, function, parameters ): the modules with fetch functions, the most used content and user fetches, parameters as a hash, what comes back, and where each module's functions are…

  2. Fetch filters and sorting Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Sorting content lists (published, modified, name, priority, path, depth, class_identifier, section, attribute ...) and filtering them by class and by field values with attribute_filter and its operators (=, !=, <, >…

  3. Fetch performance Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Keeping templates fast when they read content: fetch once, always limit, filter in the fetch, avoid fetches in loops and children on large folders, prefer content_info, use counts for paging, cache expensive parts, and…

  4. Fetching nodes and lists Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    The content fetches for pages: node by id, path or remote id; list and tree with their parameters (parent_node_id, sort_by, offset, limit, depth, class filters, attribute filters, main_node_only, ignore_visibility…

  5. For loops Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Counting loops with for: from a number to a number, counting down, sequences, and typical uses such as star ratings, placeholders and page numbers.

  6. Foreach loops Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Looping over arrays and fetch results with foreach: keys and items, offset, max and reverse, sequence for alternating classes, delimiter between items, break, continue and skip, and loop habits that keep templates fast.

  7. Forms in templates Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Forms on a public site built from content: information collection (feedback and contact forms) with ActionCollectInformation, the collect templates, validation messages, the result page and mail templates, the form…

  8. Full view Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    The full view, the template of a content page: what it receives ($node, $view_parameters, $language_code), a complete article example, the one h1, sub-items with paging, handing values to the pagelayout, caching rules…

  9. Function reference Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Every template function (the brace tags that control templates) of the template library and the kernel, with its syntax in one line and the page that explains it: def, set, if, foreach, for, while, do, switch, include…

  10. The i18n operator Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Translating interface texts in templates with i18n: the context, the translator comment, placeholders with a hash or numbered with an array, washing, the x18n and d18n variants, and naming contexts for a theme.

  11. If and conditions Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Conditional output with if, elseif and else; the comparison and logic operators used in conditions (eq, ne, gt, lt, and, or, not); testing for content, emptiness and existence; and conditions inside attribute values.

  12. Include Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Splitting templates into parts with include: the design resource, passing parameters, what the included template sees, naming parts, and include versus node_view_gui and overrides.

  13. Fetching a layout in templates Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    The fetch functions of the layouts engine (layout, resolve_layout, resolve_layout_for_node, rules_for_node, layout_summary_for_node and the admin ones), their parameters, drawing the result with explayouts/layout.tpl…

  14. Line view Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    The line view, the template of a content item in a list: what it receives, a teaser example with image, title, date and intro, parameters from the caller, headings inside lists, and per-class line views.

  15. Literal and delimiters Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Printing braces in template output with ldelim and rdelim, or a whole passage untouched with literal; why designs rarely need either now that CSS and JavaScript live in files.

  16. Logic and comparison operators Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    The operators that build conditions: eq, ne, lt, gt, le, ge, and, or, not, true, false, null, choose, and the type tests is_set, is_unset, is_array, is_string, is_numeric, is_object, is_null, get_type, get_class.

  17. Math operators Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Arithmetic in templates with sum, sub, mul, div, mod, inc, dec, min, max, abs, ceil, floor, round, int, float, count, roman and rand, with examples for paging, percentages and grids.

  18. Menus and navigation Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Building a site's main menu, sub menus and footer links in templates: fetching the root's children with limits and class filters, marking the current page with aria-current, a second level, caching the menu, and…

  19. Module result and content info Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    What $module_result holds after a view has run (content, path, title_path, uri, content_info, view_parameters, errorType and errorNumber) and how the pagelayout uses content_info to know the class, node, section, view…

  20. Node templates by class Updated Markdown page

    Markdown documentation (help center) · Templates · Changed 01:08 pm

    Organizing a design's templates per content class and view mode: the override rule pattern, a folder layout by view mode, a naming scheme, a checklist of the class and mode pairs a site needs, and how the media and…