I have a panel with a content pane that shows a node based on the Taxonomy Term Name in the URL of the panel. This is working using "(Content) Content: Has taxonomy term ID" as a contextual filter, and "From panel argument" within the content pane.

I am also wanting to add the add comments form to the panel. Which could be done using the nid of the node displayed in the above mentioned panel.

So, from within panels, how can I get the nid of a node that has the taxonomy term as a field, where the taxonomy term is within the URL?

Can taxonomy_select_nodes($array_with_tids); be used within panels?

Using Drupal 7, Panels 7.x-3.3


1 Answer 1


Rather than getting the nid from within Panels, I just used taxonomy_select_nodes and passed the result to panels as a second argument in the URL eg panels-view/%tid/%nid.

This solved my problem.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.