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

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.