Martijn Geerts Posted June 30, 2013 Share Posted June 30, 2013 Trying to install MarkupCSScompress module, but PW respond with: Unable to install module 'MarkupCSScompress': You must save Fieldgroup 'MarkupCSScompress' before adding to Template 'MarkupCSScompress' Who can help me out ? souce code on github tnx Link to comment Share on other sites More sharing options...
Martijn Geerts Posted June 30, 2013 Author Share Posted June 30, 2013 (edited) Somehow it's solved... I don't know how it happend. Sorry for your time! I think the Fieldgroup already existed and I tried to create another one with the same name. Deleting the fieldgroup belonging to the template in the DB did solve the issue. ( I also deleted fieldgroups_fields with the corresponding fieldgroups_id ) Couldn't find any topic / tutorial or docu on how to do this with the api: $fieldgroups = wire("fieldgroups"); // don't know if $fieldgroups is direct accesable in the templates $template = $templates->get("a-template"); $fieldgroupId = (int) $template->fields->id; $fieldgroup = $fieldgroups->get($fieldgroupId); $templates->delete($template) $fieldgroups->delete($fieldgroup); Edited July 5, 2013 by martijn-geerts Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now