Thanks for the reply.
From above, 1) refers to checking that the configuration group exists and reusing the configuration_group_id. I check by looking for the group name not the number as this is the next one available as you have said (if it does not exist).
When I have written plug-ins, I have usually created a group for them to go into to keep their maintenance in one place and not have them present in the existing section as to me, they get very full. I do see the logic of putting them into the existing groups and will give it some thought for my latest effort.
The question came about because as I was writing a new plug-in, as an encapsulated plug-in, and I fell foul of the random uninstall issue. Which marks the plug-in as uninstalled, but does not remove any of the information from the database. When I tried to reinstall it, it tried to find the group but failed because I was using
PHP Code:
$result = $this->executeInstallerSql($sql);
which does not return the selected values and so my install failed. I am now using
PHP Code:
$result = $this->dbConn->execute($sql);
which does return the selected values.
Having found this issue of my creating, I thought I would ask about best practice. To see if there was a better way of doing things.
I am glad that you mentioned others putting settings into your group, as I had never thought about it. Something else check.
It is all a good learning curve and people on the forum are so helpful.
Thanks again
Bookmarks