Hi,

I have the following url's through autopath:
So my url www.example.com/Nepal/Kathmandu/flight

How can I using this module to strip the url-peaces
- Nepal
- Kathmandu
- flight
So I can use these three values as tokens in node-title, node-body:
Say
- Nepal = Token_url1
- Kathmandu = Token_url2
- flight = Token_url3

Or something like this?

Thanks a lot in advance for your reply!

greetings,
Martijn

Comments

hanoii’s picture

It should be fairly easy to define the tokens, but I am not sure how you are planning on using them. If you already have tokens being replaced in your node it shouldn't be a problem.

You need to define a Node token with the following code:

token_url1

return arg(0);

token_url2

return arg(1);

token_url3

return arg(2);

that should work.

hanoii’s picture

Status: Active » Fixed
hanoii’s picture

Status: Fixed » Closed (fixed)