xen form

DroidHost

Well-known member
I want to use xen form but I dont know how
any guidness

and how to build this template for my own ?
I modify it but it did not work... I want to list some staff

PHP:
<xen:form action="{xen:adminlink admin-templates}" class="section">

    <h2 class="subHeading">
        <xen:include template="filter_list_controls" />
        ali
    </h2>

    <ol class="FilterList Scrollable">
        <xen:foreach loop="$templates" value="$template">
            <xen:listitem
                id="{$template.title}"
                label="{$template.title}"
                snippet="{$template.addonTitle}"
                href="{xen:adminlink 'admin-templates/edit', $template}"
                delete="{xen:adminlink 'admin-templates/delete', $template}" />
        </xen:foreach>
    </ol>

    <p class="sectionFooter">{xen:phrase showing_x_of_y_items, 'count=<span class="FilterListCount">{xen:count $templates}</span>', 'total={xen:count $templates}'}</p>

</xen:form>
 
The following error occurred:

The following templates contained errors and were not saved: DH_Bannar_List: 1) Line 8: Unknown tag: form
 
Correct. xen:form is an admin-only tag, along with xen:controlunit and a vast array of others.
 
List of available default "only admin tags":

PHP:
$this->addTagHandlers(array(
            'textboxunit'  => new XenForo_Template_Compiler_Tag_Admin_TextBoxUnit(),
            'textbox'      => new XenForo_Template_Compiler_Tag_Admin_TextBoxUnit(),

            'passwordunit' => new XenForo_Template_Compiler_Tag_Admin_PasswordUnit(),
            'password'    => new XenForo_Template_Compiler_Tag_Admin_PasswordUnit(),

            'uploadunit'  => new XenForo_Template_Compiler_Tag_Admin_UploadUnit(),
            'upload'      => new XenForo_Template_Compiler_Tag_Admin_UploadUnit(),

            'selectunit'  => new XenForo_Template_Compiler_Tag_Admin_SelectUnit(),
            'select'      => new XenForo_Template_Compiler_Tag_Admin_SelectUnit(),

            'radiounit'    => new XenForo_Template_Compiler_Tag_Admin_RadioUnit(),
            'radio'        => new XenForo_Template_Compiler_Tag_Admin_RadioUnit(),
            'checkboxunit' => new XenForo_Template_Compiler_Tag_Admin_CheckBoxUnit(),
            'checkbox'    => new XenForo_Template_Compiler_Tag_Admin_CheckBoxUnit(),
            'spinboxunit'  => new XenForo_Template_Compiler_Tag_Admin_SpinBoxUnit(),
            'spinbox'  => new XenForo_Template_Compiler_Tag_Admin_SpinBoxUnit(),
            'comboboxunit' => new XenForo_Template_Compiler_Tag_Admin_ComboBoxUnit(),
            'combobox' => new XenForo_Template_Compiler_Tag_Admin_ComboBoxUnit(),
            // these don't have corresponding non-unit versions
            'controlunit'  => new XenForo_Template_Compiler_Tag_Admin_ControlUnit(),
            'submitunit'  => new XenForo_Template_Compiler_Tag_Admin_SubmitUnit(),
            'form'  => new XenForo_Template_Compiler_Tag_Admin_Form(),
            'listitem'    => new XenForo_Template_Compiler_Tag_Admin_ListItem(),
            'popup'        => new XenForo_Template_Compiler_Tag_Admin_Popup(),
            'adminpagenav' => new XenForo_Template_Compiler_Tag_PageNav(),
        ));
 
Top Bottom