Download & Extend

How to incorporate access restrictions and node status

Project:Views Tagadelic
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Does anybody know how to set up views tagadelic to show only terms of nodes where the user has access permissions? And how to respect the node status (I don't want to show terms of unpublished nodes). Thanks

BTW. for the current temporary solution for the node status see issue #285245: Views Tagadelic Port to drupal 6 with views 2 comment #47.

Comments

#1

At the moment I changed the sql-query in the function template_preprocess_views_view_tagadelic (in file theme.inc) to:

'SELECT COUNT(*) AS count, d.tid, d.name, d.vid FROM {term_data} d INNER JOIN {term_node} t ON d.tid = t.tid INNER JOIN {node} n ON t.nid = n.nid WHERE t.tid IN '. $tid_restrictor . $vid_restrictor .' AND n.status = 1 GROUP BY d.tid, d.name, d.vid ORDER BY count DESC'

But I don't like this solution, because it's not dynamic and doesn't respect access restrictions by other modules.

nobody click here