Jump to content

Additional help text for Page Status field

Lance O.

Recommended Posts

I would love to see additional help text added to the Page Status field description for admins that aren't technically proficient. This may seem obvious to those of us who use PW every day, but additional help text could increase the confidence of new admins with PW.


  • Like 2
Link to comment
Share on other sites

Here's a hook (add to /site/ready.php) that allows you to set a description and your own help notes for each checkbox in the Status field:

// Add some extra notes to the options in the Status field of Page Edit
$wire->addHookAfter('ProcessPageEdit::buildFormSettings', function(HookEvent $event) {
	/** @var InputfieldWrapper $form */
	$form = $event->return;
	$status = $form->getChildByName('status');
	if(!$status) return;
	// Add a description to the field if you like
	$status->description = 'You can apply various statuses to this page to control its visibility and editability.';
	$options = $status->options;
	// Define your notes here
	$notes = [
		2048 => 'Peter Piper picked a peck of pickled peppers.', // Unpublished
		1024 => 'How much wood would a woodchuck chuck, if a woodchuck could chuck wood?', // Hidden
		4 => 'She sells sea shells by the seashore.', // Locked
	foreach($options as $key => $value) {
		if(!isset($notes[$key])) continue;
		$options[$key] .= "[br]{$notes[$key]}[br] ";
	$status->options = $options;


Edited by Robin S
Added description to Status field
  • Like 6
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...