-
Notifications
You must be signed in to change notification settings - Fork 1
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
Provide an example, how to use it on organic groups #1
Comments
@schoenid Try to add the ‚NID‘ (Node ID) to the link path. It worked for me following the steps below.
Does that work for you? (You need to adapt the example slightly.) See also backdrop-contrib/og#45 (comment). |
Great !!! I'm using the following views configuration, to allow it to be displayed only in a group with valid membership: RELATIONSHIPS
CONTEXTUAL FILTERS
FILTER CRITERIA
FIELDS
This works 👍 As I found further below in the field settings the "Replacement patterns" I was able to configure the view for different configurations of the Groups audience field: @olafgrabienski 👍 Thank you very much !!! |
@schoenid Would you be willing to add a page to the Wiki with this information for others to find more easily? |
@laryn Yes, I would do that, if I would have an edit permission. Unfortunately I don't have it. |
@schoenid thanks! I think I just opened up the wiki to edits. Let me know if you still have trouble with it. |
@laryn Thank you too. |
This is a question:
I'm trying to create an automatic selection of a group while creating a new organic group content.
- None - Erzähler-Gruppe Maler-Gruppe Musiker-Gruppe Tänzer-GruppeThe structure in HTML looks as follows:
So I've created a view with the Content: Title of the group, I want to create new content in.
(Group node from OG membership) Content: Title
This gives me the groups title, if I'm on the groups page URL, as example "Erzähler-Gruppe".
Then I've tried to Rewrite Results for this field: "Create new book ..." and to output the field as a link:
Link path: /node/add/book?edit[og_group_ref][und][0][value]=Title
So this or something similar should open the book edit page (it does), but with marked group (it does not ...).
I've tried several possibilities and combinations, without success.
Link path: /node/add/book?edit[og_group_ref]=Title
Link path: /node/add/book?edit[og_group_ref][und][0][default]=Title
Link path: /node/add/book?edit[og_group_ref][und][0][default][value]=Title
Link path: /node/add/book?edit[og_group_ref][value]=Title
Link path: /node/add/book?edit[og_group_ref][default]=Title
Link path: /node/add/book?edit[og_group_ref][default][value]=Title
and more ...
Could someone help here, please?
Many people would be thankful.
Best Regards
The text was updated successfully, but these errors were encountered: