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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
cnisvcs
Forum Members
Forum Members
Posts: 37
Joined: Wed Jan 30, 2008 3:02 am

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

Post 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?
Post Reply

Return to “Modules/Add-Ons”