Timeline for use "php code" in page manager access rules to evaluate if current og_group has content of a specific type
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 6, 2016 at 7:48 | history | edited | avpaderno♦ |
edited tags
|
|
Mar 20, 2016 at 18:50 | vote | accept | miro marchi | ||
Mar 12, 2016 at 16:35 | comment | added | Stefanos Petrakis | Hey Miro, updated my answer below, you can try the code at the top. | |
Mar 12, 2016 at 16:27 | comment | added | miro marchi |
I didn't expand all objects in the picture, but inside data there is nid, for instance. I'm trying to evaluate something like this empty(views_get_view_result('rbv_view_group_content','panel_pane_3','$node->nid')); , with no success yet! It is the related view with contextual filter that I am trying to get.
|
|
Mar 12, 2016 at 16:18 | comment | added | miro marchi | yes, thanks, I added a print screen in the question! | |
Mar 12, 2016 at 16:17 | history | edited | miro marchi | CC BY-SA 3.0 |
added context image to answer comment by @stefanos
|
Mar 12, 2016 at 15:57 | comment | added | Stefanos Petrakis | Hey Miro, could you post a list of the $contexts available in the php code rule? You need to have the devel module installed and then you could get them on your screen by placing this into the php textarea: dpm($contexts); | |
Mar 12, 2016 at 15:29 | history | edited | miro marchi | CC BY-SA 3.0 |
edit after Stefanos comment
|
Mar 12, 2016 at 14:55 | answer | added | Stefanos Petrakis | timeline score: 1 | |
Mar 12, 2016 at 10:34 | history | asked | miro marchi | CC BY-SA 3.0 |