Change page attribute value after selecting page type?
Permalink 1 user found helpful
Good day,
Trying to figure out how to dynamically change the value of a Page Attribute after the selection of a specific Page Type.
The reason is because I want a specific page type ("Blog Post") to automatically pull in the value of it's parent's page ID. This ID number is used to retrieve another custom page attribute that contains a set of checkboxes ("Blog Categories").
Currently, using the Page Type controller, I can set the attribute AFTER save. At that point, I need to go back to the page properties and assign my blog categories.
... this is okay, but my intention is to create a page from the front end, select the blog post page type and then have my custom blog categories appear.
Normally, this is done with Page Type Defaults, but in this case my custom attributes are being created dynamically with the handle format 'blogga_%parentPageID%_categories' where parentPageID changes based on the location.
Is there a way to tap into the page type selection event? Thanks for taking the time,
-Aaron
Trying to figure out how to dynamically change the value of a Page Attribute after the selection of a specific Page Type.
The reason is because I want a specific page type ("Blog Post") to automatically pull in the value of it's parent's page ID. This ID number is used to retrieve another custom page attribute that contains a set of checkboxes ("Blog Categories").
Currently, using the Page Type controller, I can set the attribute AFTER save. At that point, I need to go back to the page properties and assign my blog categories.
... this is okay, but my intention is to create a page from the front end, select the blog post page type and then have my custom blog categories appear.
Normally, this is done with Page Type Defaults, but in this case my custom attributes are being created dynamically with the handle format 'blogga_%parentPageID%_categories' where parentPageID changes based on the location.
Is there a way to tap into the page type selection event? Thanks for taking the time,
-Aaron