Forum

Thread tagged as: Question, Problem

Page Attributes

Hello

I want to add a page attribute setting to allow a user to change the name of a button that is in the menu and would like to use the following

<perch:pages id="enquiry_form" label="Enquiry Form" type="text" suppress="true" divider-before="Enquiry Form" />

But its not working

However i have page attributes set using a select box and they work fine

<perch:pages id="bodyclass" label="Page Theme" help="Select the theme for this page" type="select" options=",Schools|green, Activity|blue, Instructor|orange" suppress="true" divider-before="Page Style Settings" />

im using the following to display the vars and the page theme is displayed but not the text one

echo '<pre>';
print_r(PerchSystem::get_vars());
echo '</pre>';
Anthony Elleray

Anthony Elleray 2 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

How is it not working?

Is that opening comma in your options a problem?

From your example:

options=",Schools|green, Activity|blue, Instructor|orange"