Rob
Well-known member
Hi,
I've got an installer that correctly adds and removes a new field to the xf_node table, its basically a boolean value, int(1).
I've managed to hook into the node edit dialogue (for pages) to add a new checkbox when editing / adding a page node but I'm now stuck as to where to go next; obviously I need the database to update and the edit form to populate correctly too.
I've tried pulling apart @Jake Bunce 's nodes as tabs add on for ideas but this handles extra options on a completely different table and uses it's own API and seems too complex for me.
I think I need to intercept the save process and somehow inject the extra field value in, but I'm totally lost here, can anyone guide me?
Thanks,
Rob
I've got an installer that correctly adds and removes a new field to the xf_node table, its basically a boolean value, int(1).
I've managed to hook into the node edit dialogue (for pages) to add a new checkbox when editing / adding a page node but I'm now stuck as to where to go next; obviously I need the database to update and the edit form to populate correctly too.
I've tried pulling apart @Jake Bunce 's nodes as tabs add on for ideas but this handles extra options on a completely different table and uses it's own API and seems too complex for me.
I think I need to intercept the save process and somehow inject the extra field value in, but I'm totally lost here, can anyone guide me?
Thanks,
Rob
Last edited: