By ethosophical on
I'm currently trying to construct a node view block which will show only nodes with numbers / nid after the node being displayed. Is there any way I can use $node->nid or some other means in creating a Views filter? Thanks.
Comments
Views - Passing Variable or PHP through Filters
I am stuck on the same problem. I need to filter nodes where the title is the current month's name, e.g. "October". Is there a way to filter the PHP function date(F)?
Many Thanks!
same problem
I need to filter for the actual nid from the adress bar. I made a nid filter for views and set it to an value. Then, in hook_views_pre_execute (&$view) i changed the nid, but that doesn't work.
Maybe it would be better to write a views filter myself.
*_*
Try this
1) Select 'Is greater than' when configuring the nid filter.
2) Add an argument, which is an nid.
This will do.
Regards.
Regards.
🪷 Beautifulmind