Hey there,
I need to do some parsing on a custom entry field whenever the entry is saved and before the entry is edited (so I parse the field and add some stuff when the entry is created, remove it when the entry is opened to be edited, then reparse it when the entry is updated). Basically, the user doesn’t need to see the results of parsing the field, but I need to save it to the database.
My problem is I’m new to extension development so I don’t know which of the loads of hooks I need to tie into. Best I can tell:
And I must be overlooking the hook that will let me edit the entry data before it is saved back to the database. Help?
Thanks!
(Background info: I need to paginate articles based on paragraph count, and the best way I can think to do this is add the {pagebreak} tag via PHP when the article is saved, then run it through the Simple Pagination plugin. However, client requires that the pagination be totally automatic – they don’t want to see {pagebreak} in the text when editing – so I need to remove it and reparse the text whenever the entry is edited.)
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.