og_site.install should insert new row into {og_sites} table
tema - July 10, 2007 - 11:43
| Project: | Organic Groups Sites |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
Please explain me, why should I create a second group for new remote site when it's already created by og_site.install?
As follows from og_sites readme:
- 2-b. Enable the og_sites module.
The install script will register the site with the hub site, creating an
organic group record on the hub site. - 2-d. On the hub site, create a new group for the site.
Under Create content, select the 'Site' content type. You will get a select
box for Site prefix. Select the prefix you gave to the new site.
There's nothing happened without second step because table {og_sites} is still empty. IMO step 2-d is unnecessary (and awkward with manual filling of site name and description fields). Here is my patch.
Nice module, thanks!
| Attachment | Size |
|---|---|
| og_sites_install.patch | 721 bytes |

#1
Can you advise what should do with this file. It appears to just be a text file?
Thanks
Ian
#2
You need to apply the patch. See: http://drupal.org/patch/apply
After you do that, please report back if it solved your problem.
Thanks!
#3
Thanks for the note. I think it's the documentation that's outdated. I suspect we should remove 2-d.
The explicit insert in the patch shouldn't be needed. When og_sites is installed, it should create a new record in the og_sites table, because saving the node should trigger
og_sites_hub_nodeapi(). Is this not happening? If not, we need to find out why.