Howdy,

I am currently working on a site which uses taxonomy throughout. I have setup taxonomy in the following way:

taxonomy/term1/term2

I want to make term1 and term2 a top-level page so the end user can control the content via Create Content/Content and so that I can completely control the taxonomy overview page using either views or something along those lines. I don't want to rely on the taxonomy description for these. I have tried to override the taxonomy pages with views but that doesn't seem to be possible.

I have also tried using the Taxonomy Redirect module, however it creates these very non-sensible urls like http://website.com/This+Is+A+Taxonomy+Term which are no good and not very SEO friendly either and it is also only possible to redirect them on a per vocabulary and not per terms basis. I am using print_terms throughout the site to create a 'tag' like link structure and these all link to the taxonomy terms. Is it possible to rename the URLs generated by Taxonomy Redirect perhaps by defining the 'taxonomy_redirect_custom_term_path' function in my theme?

I know it is pretty much impossible to overwrite taxonomy URLs (or at least I have not figured out how to do it).

My question is, is there another way around this this issue? Perhaps a .htaccess solution even though its not optimal?

I hope this makes sense, if anyone has any questions let me know.

Any help would be greatly appreciated.

Best,
Christian

Comments

nevets’s picture

The standard taxonomy path for a listing of content is taxonomy/term/{tid} where {tid} is a taxonomy term id (a number). Views with the taxonomy_term view that can be used to override this path for all terms (it is disabled by default). You can click the 'add' link for this view to make a copy you can customize.

Now depending on what you mean by "end user". if you mean the site owner with the ability to edit category/taxonomy information you might want to look at the Taxonomy Introduction module.

PRFB’s picture

I want to do much the same thing, and thought Taxonomy Redirect would work, but the limitation of one destination per vocabulary is a big problem for me.

Best I've come up with so far is a 301 redirect, and I'm not sure how SEO-friendly that would be in this case.

There's probably also a way to read the taxonomy from a node and generate a block with the desired links in a separate block. But feels like there should be an easier way....

PRFB’s picture

I think I figured something out. Check out Related Links and its "Discovered Links" feature.

In my case, I have News and Pictures which are assigned to taxonomy terms for certain brands. I also have Guides to those brands. I wanted to point users (and Google) to the Guides more than a taxonomy list.

So, I tell Related Links to include Guides, and I make the first page of each Guide (they're multi-page Books) "sticky at top of lists" so it turns up ahead of the follow-up pages.

Hope that works for you, too!

socialnicheguru’s picture

good idea.

Chris

http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.

phKU’s picture

I know it is pretty much impossible to overwrite taxonomy URLs (or at least I have not figured out how to do it).

I still can't figure out what is impossible with Drupal. There's an API function right out the box for that:

custom_url_rewrite_inbound

The 'q' variable will then reflect the new url.