Hello.
I’m not sure I understand. How would that work?
I fill in the front end form which creates a new entry. You want the page attribute to reference the latest entry, correct?
How would the checkbox help with that?
I think the checkbox on the front-end form would be like “Make this a featured entry on the home page” and then if it were submitted, that would auto-update the attribute associated with the home page to the value of that row in the express object.
After a few days of noodling around with this, I think I’ve found another approach. But I still need some help figuring out how to programmatically set a custom page attribute on the site’s home page. Thoughts, anyone?
Several complete re-writes later, I’m marking this as resolved.
It turns out that the best way to handle the content associated with the custom Express Entity Attribute on my client’s homepage is to actually publish this content to a custom page type.
By adding a custom checkbox attribute to that custom page type, I’m able to incorporate a checkbox on the Compose form for that page type. I was then able to add code to the page header for that custom page type that checks for that checkbox value and executes if it’s been checked.
If the checkbox is checked, the code resets the custom attribute on the homepage. It’s a little cumbersome, but it meets requirements.