How can I see a Panel Page, having the node title as an argument?
Ex:
The product "samplepanel" has the "product/sample" URL alias which resolve the node/10.
Of course I can see the node in the "product/sample" URL, but now I also want to see it in the following URL: "thebestproduct/sample".
So, I've created a panel with "thebestproduct/%node" path.
The "thebestproduct/10" URL works, but the "thebestproduct/sample" URL gives me the "Page not found".
In conclusion, I only can see the panel with the nodeid which is a little bit ugly.
I can achieve it by creating one more URL alias (with rules) everytime a product is created. But I believe there is a better solution for this.
Anyone can help me?
Many thanks
Comments
i am also
looking for this solution...
anyone?
anyone?
I ran into a similar issue
I ran into a similar issue with needing to include url aliases to node paths as arguments.
In order to accomplish this or something similar as in the OP you need to code a custom ctools arguments plugin. You don't need separate contexts or content_types as the advanced help page for the example ctools plugin leads you to suspect. You can just use the node keyword.
Here's a code snippet from what I just wrote for aliases, but it's obviously not the entire module as you'll see a required setting:
Note: I'm bumping this up from a few months back... Mainly to give people better search results. Ignore if you want. ;-)
Where I have to put the code snippet?
I´m looking for the same solution that let me include the node title in the URL and I´m dealing with Panels arguments with no results so far.
So, where that snippet must be included?
Thanks!
Could you explain how you
Could you explain how you accomplished this? I am trying to replace the node id with the node title in the panels argument. Thanks.
code?
Hi M Radcliffe, I was hoping you'd be able to attach the plugin that you've written to do this. Or add it to the ctools queue. It would be VERY helpful :)
BUMP, need it to... got stuck
BUMP, need it to... got stuck without it!
subscribing
subscribing
subscribing
subscribing
For anyone googling this now
A solution based on mradcliffe's comment:
Make a new module with the following three files in the exact paths:
new_module/new_module.info
new_module/new_module.module
new_module/plugins/arguments/node_title.inc
Hope this can speed up someones process. :)