Hi, I would like to display a view with a node which ID is matching a variable from the page URL.
To be clearer, I have this URL:
www.example.com/user/XXX/contact?sujet=Votre annonce&noeud=417
where "noeud" is the node ID that I want to get, to display only that node.
What I tried:
1. use the arguments (contextual filters) => added some PHP code to define the "default value". Code :
$_GET['noeud'];
I don't know if that code is working, but if it is, how could I use that variable in the views filters?
2. get the node id value directly in the filters:
Content : Nid (= $_GET['noeud'];)
Not working either...
Could someone give me a hint on how to do it?
Comments
Comment #1
Louis Bob CreditAttribution: Louis Bob commentedanyone ?
Comment #2
MustangGB CreditAttribution: MustangGB commentedClosing this as outdated, feel free to re-open if you're still looking for a solution and waiting for appropriate assistance.