Hi, thank you for the modules.
I have a view (node type), which shows 1 full node. It has no arguments, just sort criteria and filters.
Now im trying to create a view which will list nodes with the same terms.
On node/% pages i had a view with two arguments
- Taxonomy: Term ID - Term ID from URL
- Node: Nid - Node ID from URL
This view worked as the view was able to get the nid from url.
However im trying to get the view to work on view pages, not nodes. I tried creating an attachment to attach to the first view I created, but I still need pass the nid of the node in the view to the attachment.
I thought this might work
$view = views_get_page_view();
$nid = $view->handlers['field']['title']->view->result[0]->nid;
$raw = db_query('SELECT tid from {term_node} WHERE nid = %d', $nid);
while ($tid = db_result($raw)) {
$tids[] = $tid;
}
return implode('+', $tids);
how ever I now get the error Fatal error: Call to undefined method views_plugin_display_page::init_localization() in sites\all\modules\views\includes\base.inc on line 97
Ive been told this is probably a php issue, but im not sure my host will alter my php, even if they did this may affect the current configuration of my site.
So im wondering if its possible to pass the nid of a view object onto an attachment any other way.
Thanks for any help.
Comments
Comment #1
willyk commentedAny luck on solving this? I am working on finding a solution to the same issue.
You may want to look at his post which addressed a similar issue: http://drupal.org/node/851556
Comment #2
kars-t commentedHi
I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.
Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.