1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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