Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create layout visibility conditions and "create links" block #118

Closed
argiepiano opened this issue May 25, 2022 · 2 comments · Fixed by #119
Closed

Create layout visibility conditions and "create links" block #118

argiepiano opened this issue May 25, 2022 · 2 comments · Fixed by #119

Comments

@argiepiano
Copy link
Collaborator

argiepiano commented May 25, 2022

D7 OG contained a few Panels selection rules, and one relationship plugin. These definitions have been moved to a file called og_og.inc, which doesn't do anything in Backdrop.

We should create parallel OG Layout visibility conditions and relationships so that they have the same functionality as the ones available for Panels in D7.

PR coming.

@argiepiano argiepiano changed the title Create layout "visibility conditions" to mirror D7's Panels "OG: node is an OG group" selection criteria Create layout visibility conditions to mirror D7's OG Panels selection criteria May 26, 2022
argiepiano added a commit to argiepiano/og that referenced this issue May 26, 2022
@argiepiano
Copy link
Collaborator Author

argiepiano commented May 26, 2022

PR #119.

This PR is limited to only the Layout visibility plugins. While I tried porting the layout relationship OG membership from a group node and user, this is being blocked by a bug in Backdrop's core. See backdrop/backdrop-issues#5482

This PR adds 4 visibility rules to layout. See attached. I've tested very thoroughly and it's working. I'll wait to merge to see if anyone else wants to test.

Screen Shot 2022-05-26 at 9 21 42 AM

@argiepiano argiepiano changed the title Create layout visibility conditions to mirror D7's OG Panels selection criteria Create layout visibility conditions and "create links" block May 26, 2022
@argiepiano
Copy link
Collaborator Author

argiepiano commented May 26, 2022

I just added also a new block, "Content create links", that existed as a Panels content type in D7. Now it's possible to add this block to a normal layout. The block creates a direct link to the add form to add content to the group node being viewed.

Important: in order for this to work properly Entity Reference Prepopulate must be enabled. Otherwise the group will not be pre-selected in the group reference field in the form. See this video tutorial.

This fulfills the enhancement request #28.

argiepiano added a commit that referenced this issue May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant