Gizra / og

https://www.drupal.org/project/og
92 stars 133 forks source link

Document how to scaffold quickly a new OG site #151

Open amitaibu opened 8 years ago

amitaibu commented 8 years ago

For testing purposes I have this bash file:

#!/usr/bin/env bash
drush si --account-pass=admin -y && drush en devel kint og_ui -y

drush php-eval "\Drupal\og\Og::addGroup('node', 'page');"
drush php-eval "\Drupal\og\Og::createField(\Drupal\og\OgGroupAudienceHelper::DEFAULT_FIELD, 'node', 'article');"

drupal create:users  authenticated --limit="10" --password="5" --time-range="604800"
drupal create:nodes  page --limit="25" --title-words="5" --time-range="604800"

I figured it would be nice to add it somewhere to allow other devs to quickly get OG related content

It uses both drush and drupal CLIs

RudyMartin commented 8 years ago

Thanks for all your hard work on porting OG to Drupal 8. I'm still not able to get this module working following the simple written directions on the github readme page.

The tab in configuration correctly will show a new group "salsa group" was added but throws on error when I go to set permissions at these URLs.

/admin/config/group/permissions/node/salsa_group

/admin/config/group/roles/node/salsa_group

This works in D7 but not D8

What did I miss?

Any suggestions/help on this appreciated.

amitaibu commented 8 years ago

@RudyMartin that functionality doesn't have a UI yet.

RoySegall commented 8 years ago

@amitaibu What about Drupal Console integration?