By Fiasst on
Hi, I've got a URL that resembles:
site.com/vocabulary-name/term-name/node-title
Or, for arguments sake I'll use an alias:
site.com/clothing/nike/nike-air-jordan-trainers
My problem is I need to add another term-name from a different vocabulary between 'nike' and the nodes title.
Pathauto doesn't seem to have multiple vocab functionality. Is there a way to include a second vocabs term into a certain content types URLs?
Thanks for reading, heres hoping :]
Marc
Comments
Quite apart from these paths
Quite apart from these paths being rather crufty...
[vocab]/[term]/other-vocab/[title]
Simple as that:)
I don't think thats what I'm looking for
That looks like a static extension. I am selling products for example Nike trainers but the products are all different and inserting trainers statically into '.../nike/trainers/nike-air-jordan-trainers' won't always apply as I'm selling more than just trainers.
I hope this makes sense.
Thanks, *holds breathe*
Marc
the question is:why arent
the question is:
why arent the terms such as trainers in the same vocab - under "nike", or multiple parented?
for example - you have a tree that looks like this
-Sports equipment
-- Nike
--- Trainers
--Trainers
Where "Trainers" is a root term, and simply has "Nike" set as a "multiple parent", thus both "Sports Equipment" & "Nike" are parents of "Trainers" (which is why it "appears" under Nike, you dont actually add it there, but when you set Nike as a parent, it automatically will appear there).
Beware, this can lead to complicated / confusing site navigation and you may run into issues with paths also.
My personal feeling is that node paths should be very simple, such as
mysite.com/trainers/nike-air-jordan
Where /trainers is a page listing all brands or types etc, with those brands paths being something like:
mysite.com/trainers/nike
mysite.com/trainers/adidas
I think that shorter,cruft free urls are a benefit to everyone - users, you and search engines. I have tried them all before, long, short, crufty, very very crufty (many keywords etc etc). The best overall long term approach I beleive is short, hyphenated paths (with no more than 3 or 4 hyphens).
Just my2cents :)
Hi Leon, thanks for your
Hi Leon, thanks for your reply.
I hear your 2cents :] but I'm not looking for an alternative and when I'm selling alot more than just shoes I can't list every brand under 'Vests, Hats, Pants, Hoodies' etc.. I really do need to -somehow- include my 'Brands' vocabulary into my products URL paths.
Without getting to involved in SEO, Keyword density is very important on this site and also finding us in the search engines with a URL like this is very desirable:
www.site.com/clothing/nike/t-shirts/some-black-nike-t-shirt
Thanks,
Marc
I'm thinking about
I'm thinking about it more, will post back. I'm sure there is a way of doing this, and certainly if it is not a requriement for either brands or clothing subcategories (such as thirts) to be terms, then you could use cck field tokens (such as selecting clothing type from a cck drop menu).
Thought required:)