init_mailinglist
Tag {init_mailinglist} allows developers to view all subscribable sections. 3.3.9 Parameters
- name - variable name where the returned data is saved. Default value is "mailinglist".
- name_separator - the character(s) that separates the section name in the full section path (default is " > ").
Attributes
- id - section ID number.
- title - title of the section.
- user_subscribed - boolean value showing if the currently logged in user is subscribed to that mailinglist (1) or not (0).
General tags
- <name>_count - the number of returned objects.
{init_mailinglist name="list"}
{foreach from=$list item=section}
<input type="checkbox" name="rubriik[]" value="{$section->id}"{if $section->user_subscribed == 1} checked{/if}>
<a href="?id={$section->id}" target="_blank">{$section->title}</a>
{/foreach}
RSS