TABLE OF CONTENTS › Default List When Subscribing

You don’t need to always have a drop down to select a list. If you only have a single list you offer you can use the following line of code:

<txp:zem_contact_secret name="zemSubscriberLists" 
     value="list_name" />

You could also do [if you have more than one but always want everyone subscribed to the same ones]:

<txp:zem_contact_secret name="zemSubscriberLists" 
     value="list_name list_name2 list_name3" />

A simple version of a form using this method would be:

<txp:zem_contact to="youremail@yourwebsite.com" >
<txp:zem_contact_email name="zemSubscriberEmail"
     label="Your Email:" />
<txp:zem_contact_secret name="zemSubscriberLists" 
     value="list_name" />
<txp:zem_contact_checkbox label="This is not Spam. " />
<txp:zem_contact_submit />
</txp:zem_contact>

Back to the Table of Contents

Comment

Ben,

Don’t forget to change this page o the manual!
As you told me, now (v.0.4.4) the way to subscribe a user to a default list is using <txp:zem_contact_secret />.

Maniquí · Feb 19, 06:43 AM · #

Thanks Maniqui. Fixed,

  • Ben

Ben · Feb 28, 01:24 PM · #

Textile Help

Official Documentation for Postmaster (A Textpattern Plugin)

Get Postmaster

RELATED

REGULARS

DISCLAIMER

Postmaster is a plugin for Textpattern, and is licensed under the GNU GPL. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licens for more details.