My store 'category page' needs to show a list of subcategories, each with an image and text. I have taxonomy image and I wrote a bit of PHP on a page to create EXACTLY what I need.
The only drawback is that the URL is /node/7/x where x is the category id. I would like to use of course /cat/x but I don't see a way to do this.
I know that I in theory could have used Views to create the page in the first place, but I didn't see easily how to do this (including the taxonomy image) nor am I an expert in Views.
So is there a way to achieve a URL alias with an argument? I don't want to enter each one /cat/1 /cat/2 manually. :(
Thanks!
use URL alias module or path auto module.
On 10/10/07, Fred Jones fredthejonester@gmail.com wrote:
My store 'category page' needs to show a list of subcategories, each with an image and text. I have taxonomy image and I wrote a bit of PHP on a page to create EXACTLY what I need.
The only drawback is that the URL is /node/7/x where x is the category id. I would like to use of course /cat/x but I don't see a way to do this.
I know that I in theory could have used Views to create the page in the first place, but I didn't see easily how to do this (including the taxonomy image) nor am I an expert in Views.
So is there a way to achieve a URL alias with an argument? I don't want to enter each one /cat/1 /cat/2 manually. :(
Thanks!
[ Drupal support list | http://lists.drupal.org/ ]
On Wed, 10 Oct 2007 14:48:46 +0300 Fred Jones fredthejonester@gmail.com wrote:
My store 'category page' needs to show a list of subcategories, each with an image and text. I have taxonomy image and I wrote a bit of PHP on a page to create EXACTLY what I need.
The only drawback is that the URL is /node/7/x where x is the category id. I would like to use of course /cat/x but I don't see a way to do this.
I know that I in theory could have used Views to create the page in the first place, but I didn't see easily how to do this (including the taxonomy image) nor am I an expert in Views.
So is there a way to achieve a URL alias with an argument? I don't want to enter each one /cat/1 /cat/2 manually. :(
use arg(N) or make your page an hook in a menu ?
So is there a way to achieve a URL alias with an argument? I don't want to enter each one /cat/1 /cat/2 manually. :(
use arg(N) or make your page an hook in a menu ?
arg(n) doesn't work because /cat/1 isn't defined anywhere in Drupal so it doesn't go anywhere. :)
I did realize as you say that it's possible to make a little module to do this. When I figure out how to do that, then I may. :)
In the meantime /node/5/1 and /node/5/2 etc. will have to suffice. :)
Thanks.