hi,
i am facing a typical problem with views2.
I have a dynamic view block, using arguments. and the argument is using menu_get_object().
the block is functioning properly when i am viewing any node :-)
Now, i have created a dynamic view page (of node type) with arguments from the URL. the path of the page is www.example.com/amrit/%/view_page.
when i am visiting something like amrit/4/view_page, everything is working ok and i am getting my page....
But, the block which i created earlier is not displaying (bcoz of no arguments). Ya, its because menu_get_object() is returning nothing. So, i removed the php code and changed the block arguments to take "node ID" from the URL.
Still the block is not displaying (still it is not getting any arguments..)
How to send argument to the block from this view generated page? i can see the required argument in the URL, but unable to use it with the block.
plz help.
thanks
Comments
You need a more complex
You need a more complex test.
Start with your original code, because you will need to use PHP.
Take "node ID" from the URL will not work with your page since it only works for paths of the form node/{nid}
So you need additional logic, something like
thanks a lot nevets
last time u solved the other views problem! and today this one... THANKS!!
you are great!
I will also use a validation with this php code....
But the last one was visibly more complex then this one ;-)
thnaks again!
take care