On a node page in a block i would like to filter the same type's contents where the field_article reference field (only 1 value) is the same as in the source node.
Do i have to configure the contextual filter as Content: Article (field_article) and Provide default argument - Content ID from URL or i've to use some PHP magic (node->field_article.....) or/and i've to set up relationship some how with Content: Article (field_article)?
If that filtering done, how is it possible to exclude from the results the source node?
Comments
Comment #1
stborchertI'll try to answer
As I understand your request you have a block that is displayed together with a single node (on "full node display"). The block displays other content of the same type filtered by a field of the displayed node.
To do so, you'll need to create tow contextual filters:
* type of node (default argument php)
* field_article (default argument php)
As the base for the PHP code of the type filter you may use:
The other filter uses the same logic but needs to get the fields value instead.
If this helps, please set the status of this issue to "fixed".
Comment #2
tim.plunkettClosing, that looks fine.