Is it still necessary in Revo to use $_POST[’snippet’] to modify the content of a chunk in a plugin triggered by OnBeforeChunkFormSave or is there a way around this legacy quirk?
Quote from: OpenGeek at Sep 20, 2009, 10:25 AM
Quote from: BobRay at Sep 20, 2009, 12:50 AM
Is it still necessary in Revo to use $_POST[’snippet’] to modify the content of a chunk in a plugin triggered by OnBeforeChunkFormSave or is there a way around this legacy quirk?
Yes, still necessary as no table columns were harmed in the development of Revolution to maintain compatibility where possible. But that does bring up the issue that all of the form-related events should be modified to pass in references to the objects for manipulation, rather than having to work with the $_POST variables (at least that’s my opinion).
Right, it would be really nice to have some way to use getContent() and setContent() in plugins
(and easier and less embarassing to explain).