1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

What is wrong with this template snippet?

Discussion in 'XenForo Development Discussions' started by tyteen4a03, Mar 21, 2015.

  1. tyteen4a03

    tyteen4a03 Well-Known Member

    EDIT: Silly me.. I was not closing the tag properly.

    Stay tuned for more late-night goofness. :D


    Diving back into XF addons now, but template system keeps saying Template Syntax Error on line 25.. not sure why.

    <xen:title>{xen:phrase 3ps_cmfu_list_presets}</xen:title>
        <a href="{xen:adminlink '3ps-cmfu/presets/add'}" class="button">+ {xen:phrase 3ps_cmfu_add_new_preset}</a>
    <xen:require css="filter_list.css" />
    <xen:require js="js/xenforo/filter_list.js" />
    <xen:form action="{xen:adminlink '3ps-cmfu/presets'}" class="section">
        <xen:if is="{$presets}">
            <h2 class="subHeading">
                <xen:include template="filter_list_controls" />
                {xen:phrase 3ps_cmfu_presets}
            <ol class="FilterList">
                <xen:foreach loop="$presets" key="$presetID" value="$preset">
                    <xen:listitem id="{$preset.preset_id}"
                        href="{xen:adminlink '3ps-cmfu/presets', $preset}"
                        delete="{xen:adminlink '3ps-cmfu/presets/delete', $preset}"
                        deletehint="{xen:phrase 3ps_cmfu_delete_preset}"
                    </xen:listitem><!-- L25 -->
            <p class="sectionFooter">{xen:phrase showing_x_of_y_items, 'count=<span class="FilterListCount">{xen:count $presets}</span>', 'total={xen:count $presets}'}</p>
        <xen:else />
            <div class="noResults">{xen:phrase 3ps_cmfu_no_presets_defined}</div>
    Valhalla likes this.

Share This Page