Views - context filter by URL alias

Discussion in 'Drupal' started by perun_x, Feb 4, 2012.

  1. #1
    Hi all,
    Does anybody know how to set up contextual filter in Views module, which will filter nodes based on URL alias?
    For example I want to define the filter: "/news/section1/%"
    and then I want to get all nodes that begins with the "/news/section1/" in URL alias.

    Thanks for your help.
     
    perun_x, Feb 4, 2012 IP
  2. Ayeshlive

    Ayeshlive Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can try Views Arg Extras module to use arguments from URL.
    Is /news/section1/% an alias of a taxonomy path or something ? If yes, you can use taxonomy term ID as a contextual filter.
     
    Ayeshlive, Feb 6, 2012 IP