Can someone please help me with this, it is important for me...

Here's the case:

In my site i use a lot of views with contextual filters, my links are therefore like https://www.example.com/foo/foo/999 where 999 is the number of a user profile ID

What i want is to get the 999 variable out of this URL to put it as a value is some rules.

What to do?
Thanks...
Nielsvoo

Comments

paranojik’s picture

Priority: Major » Normal
Status: Active » Closed (works as designed)

You need the Pathrules module to achieve that: https://drupal.org/project/pathrules.

nielsvoo’s picture

Oke,

thanks for this quick answer, I've already tried that but with this module i don't know how to get the 999 as a variable. because you are maintainer of the "Path Rules" module also i created a issue there i want to ask you if you can give me some explanation. here is the link to the other issue https://drupal.org/node/2223567

thanks for your help
Nielsvoo

Richard15’s picture

You can also use:

$path_args = explode('/', request_path());
or
$path_uri = explode('/', request_uri());