TABLE OF CONTENTS › Defaulting To "Always On"

Some people don’t like how Postmaster “hides” the mail module on the Content > Write tab until and article has been selected or saved. This is very easy to change.

Go to TXP > Admin > Plugins and click the “Edit” link next to Postmaster. At the very top of the plugin you’ll see a block of code like this:

include_plugin('Postmaster Library'); // postmaster library functions
register_callback('bab_pm_zemcontact_submit','zemcontact.submit'); // plugs into zem_contact, public-side
if (@txpinterface == 'admin') {
	add_privs('postmaster', '1,2'); // see help for details
	register_tab('extensions', 'postmaster', 'Postmaster');
	register_callback('bab_postmaster', 'postmaster');
	register_callback('bab_pm_zemcontact_submit','zemcontact.submit');
	register_callback("bab_pm_eop", 'article' , 'edit', '0');
	register_callback("bab_pm_eop", 'article' , 'save', '0');
	register_callback("bab_pm_eop", 'article' , 'publish', '0');
//	register_callback("bab_pm_writetab", 'article' , ''); // default is "only while editing"
	register_callback("bab_pm_writetab", 'article' , 'edit');
	register_callback("bab_pm_writetab", 'article' , 'save');
	register_callback("bab_pm_writetab", 'article' , 'publish');
}

You want to make it look like this (simply delete the two hash marks):

include_plugin('Postmaster Library'); // postmaster library functions
register_callback('bab_pm_zemcontact_submit','zemcontact.submit'); // plugs into zem_contact, public-side
if (@txpinterface == 'admin') {
	add_privs('postmaster', '1,2'); // see help for details
	register_tab('extensions', 'postmaster', 'Postmaster');
	register_callback('bab_postmaster', 'postmaster');
	register_callback('bab_pm_zemcontact_submit','zemcontact.submit');
	register_callback("bab_pm_eop", 'article' , 'edit', '0');
	register_callback("bab_pm_eop", 'article' , 'save', '0');
	register_callback("bab_pm_eop", 'article' , 'publish', '0');
	register_callback("bab_pm_writetab", 'article' , ''); // default is "only while editing"
	register_callback("bab_pm_writetab", 'article' , 'edit');
	register_callback("bab_pm_writetab", 'article' , 'save');
	register_callback("bab_pm_writetab", 'article' , 'publish');
}

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.