By ChocolateTeapot on
I'm using pathauto to rewrite my node URLs. For example, a content type of walk may result in a URL of example.com/walk/thames-path, where Thames Path is the title of the node.
I'd like to create a view for these types of views, i.e. example.com/walks/* but I can't get my head around it.
1) If I ignore the fact that I've rewritten the URLs and just assume example.com/node/node_number, i.e. the default URL, I don't understand how to specify the node number as an argument.
2) Is it possible to create a view for example.com/walk/title-of-node, given that the URLs for walk have been rewritten?
Any help would be appreciated, thanks.
Comments
.
Pathauto and the URL have nothing really to do with the View you want to create. Assuming you want a listing of all the "walk" content type, you would use node:type as the filter.
Or do I misunderstand what you are trying to do?
.
Thanks for your answer.
I've applied the filter.
I've got a path of walk which gives me a list of all walk content types at example.com/walk.
What I want to do though is create a view for the node page that shows the individual node, e.g.
example.com/walk/thames-path (original url example.com/node/8)
example.com/walk/cotswolds-way (original url example.com/node/12)
but I can't work out how to apply the view to the node page, or is that not something that Views will do?
Thanks again for your help.
...
you can do that, but why would you want to do that? It wouldn't be any different - at least not based on what you've told us so far - than displaying it just ordinarily.
Basically, tell us what are you trying to do - not how are you trying to do it.
I've got a map on the page
I've got a map on the page and I think I'd get more styling options if I used a view??
...
A map? and the map is not part of the content_type?
more styling options? you are mistaken. node and CCK templates are just as good as views templates.