To get this module to work on a fresh install, the "sites group" specified at Administer › Organic groups › Organic groups sites hub *must* be saved once. This would be step 1 a) in the INSTALLATION AND SETUP section of the readme. Failure to do so won't let show up the prefix selection when creating a new site via "create content", and editing a site generated by the install script won't save most of the fields (which is in fact more critical than the first issue).
A possible alternative could be setting the og_sites_hub_og variable to a reasonable default value (ie. og_site).
The problem currently is, that the select box at Administer › Organic groups › Organic groups sites hub *by default* shows a reasonable value (ie. Site), so I saw no reason in hitting "save". Unfortunately the form_alter() routines require the variable to be correctly set.
Nice module, btw :)
--
Stefan Kudwien
http://www.unleashedmind.com
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | og_sites-register-type_1.patch | 746 bytes | nedjo |
| #2 | og_sites-register-type_0.patch | 859 bytes | nedjo |
| #1 | og_sites-register-type.patch | 749 bytes | nedjo |
Comments
Comment #1
nedjoGood catch.
What I think we need to do is register the type after it's created in the .install file. Patch attached.
Comment #2
nedjoThis looks better. Save before converting node type into object.
Comment #3
nedjoRemove duplicate line.
Comment #4
smk-ka commented#3 looks good. As long as nobody's not tampering with the variable value (ie. deleting it), this should fix it.
Comment #5
nedjoApplied.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.