Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
So I added relationship "Node from view" to node page and it does not work in latest -dev.
in function views_content_node_from_view_context
(ctools\views_content\plugins\relationships\node_from_view.inc) there is line $row = intval($conf['row']) - 1;
and dsm tells me it is "-1". Not good. Turns out $conf passed to this function has no ['row'].
Am I doing something wrong or its a bug?
Comment | File | Size | Author |
---|---|---|---|
#3 | ctools-node_from_view-upgrade_context_plugin-1217916-2.patch | 878 bytes | mansspams |
#3 | ctools-term_from_view-upgrade_context_plugin-1217916-2.patch | 883 bytes | mansspams |
#3 | ctools-user_from_view-upgrade_context_plugin-1217916-2.patch | 879 bytes | mansspams |
Comments
Comment #1
mansspams CreditAttribution: mansspams commentedI saw in NodeOne screencast that there is row checkboxes in Relationship config screen, there were none on mine, are those removed in later versions or I should look there first?Looks like
function views_content_node_from_view_settings_form
is ignored, not called at all.Comment #2
mansspams CreditAttribution: mansspams commentedCode looks legit. I have no idea where the problem could be. Brutal $row = 0; does work. There is 'settings form' in $plugin array, shouldn't it be 'edit form'?
Update from UPGRADE.txt: "Context, argument and relationship plugins now use 'add form' and/or 'edit form' rather than 'settings form'." I see. Key word in this is "now" :)
Comment #3
mansspams CreditAttribution: mansspams commentedWonder if I should change function names too. Works without it.
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedMore stuff missed in the upgrade. Thanks for finding this!