Page 1 of 1

NMS - How to remove newsletter list checkbox(es)?

Posted: Thu Aug 25, 2011 8:25 pm
by cnisvcs
I looked through the forum, but couldn't find a solution.

By design, the subscribe form displays all available (or specified by select="" parameter) public lists that a visitor can subscribe to. I would like to make the subscribe form work for one specific list only, hence the list of checkboxes should not be displayed. I assume that while embedding the module in the template I should be parsing some indicator of the list that the subscribed person will be assigned to, but I can't see a way to do that. I see a bunch of hidden input fields but, don't know how to alter their content.

As a workaround I used combination of indicating to display only one list by select="my_list" parameter with wrapping the code displaying the list with not displayed div:

<div style="display: none;">
{foreach from=$listids item=curr_id}
{$curr_id}<br/>
{/foreach}
</div>

This seems to work, but is there more elegant or more recommended solution?