2009-09-23, 05:03 AM
I built a Garage plugin finally and am now working on the plugin setup. I've got all the functions created (info, install, uninstall, activate, deactivate) and need to figure out the best way to install 34 new templates into the default template set.
I have created them already and have the new group insert query done, but I am not sure of the best way to create/insert all 34 templates.
Should I install them with sid = -2 so that user edits are tracked and can be reversed and they are available to all template sets?
How should they be added, via .sql file that I supply and read via fopen or build a huge query in the install function inside the plugin file itself? The fopen option is cleaner, but there can be issues with read access.
Thanks for any help, this plugin is huge and has taken a long time to build. Almost done.
anyone have a suggestion?
I have created them already and have the new group insert query done, but I am not sure of the best way to create/insert all 34 templates.
Should I install them with sid = -2 so that user edits are tracked and can be reversed and they are available to all template sets?
How should they be added, via .sql file that I supply and read via fopen or build a huge query in the install function inside the plugin file itself? The fopen option is cleaner, but there can be issues with read access.
Thanks for any help, this plugin is huge and has taken a long time to build. Almost done.
anyone have a suggestion?