Painbaker
Well-known member
I'm trying to extend
Please make a full help page item macro without shortened
help_page_list
admin template in my add-on, but i cant do this without breaking compatibility with other add-ons.
HTML:
<xf:foreach loop="$pages" value="$page">
<xf:datarow
label="{$page.title}"
hint="{$page.page_name}"
href="{{ link('help-pages/edit', $page) }}"
explain="{$page.description}"
delete="{{ link('help-pages/delete', $page) }}"
hash="{$page.page_id}">
<xf:toggle name="active[{$page.page_id}]" selected="$page.active"
class="dataList-cell--separated" submit="true"
tooltip="{{ phrase('enable_disable_x', {'title': $page.title}) }}" />
</xf:datarow>
</xf:foreach>
Please make a full help page item macro without shortened
<xf:datarow>
tag or allow us pass datarow entries as tag argument.
Upvote
0