{init_mailinglist}

Tag {init_mailinglist} returns all subscribable sections.

 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.

Example

{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}