Sorry, I can't find the answer to this anywhere...
One of my exposed View filters has the url:
domain.com/news?by-area=nw
news = the default 'page' for the view where all 'news' nodes are listed
by-area = the label given to the exposed filter
nw = the CCK 'key' for the field-label 'north west' Eg. in CCK the entry is: nw|North West
I can make a menu item point to: news?by-area=nw and it displays the filtered list without the user having to use the Views drop-down.
Everything works. Thanks Drupal people. :)
Now I'd really like people to be able to bookmark or remember urls like domain.com/news/north-west, instead of the filter's own cryptic domain.com/news?by-area=nw url, but the Path Alias Module says 'The path is either invalid or you do not have access to it'.
I don't quite understand why?
Is there a way to do this?
Thanks.
Comments
Views Arguments
I'm going to post what I DO know, but I'm pretty sure you'll have a follow-up question. I hope someone can pick it up from there.
What you are looking for is an "Argument." In views you would set your page to simply domain.com/news. In the argument area you would add the "by Area" field. (I'm assuming your content type has a cck field where you are setting this region.) So now if you link to domain.com/news/se (or south-east -- whatever you called it) your page should show you all the news for the Southeast.
If this isn't enough help, please watch a couple of videos on Views Arguments.
A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com
For anyone still looking take
For anyone still looking take a look at this
http://drupal.org/node/118072#comment-4706374
------
GiorgosK
Web Development