I'm creating a web site, where admin can
1. Create news (in several categories)
2. Create static pages
3. Create polls
I've encountered one interesting problem.
So, my steps:
1. Created 'news' content type (using 'story').
2. Created vocabulary 'News', content type - 'news', required for node to be here - 'true'
3. Created term 'General' in vocabulary 'News'
4. Created term 'CSS' in vocabulary 'News'
5. Created vocabulary 'Static pages', content type - 'page', required for node to be here - 'true'
6. Created term 'General' in 'Static pages'
7. Created term 'Partners' in 'Static pages'
So, we have two vocabularies, one vocabulary for each content type, and two terms for each vocabulary.
What I DON'T understand now:
what's going on with breadcrumbs?
if I create news and put them in 'news/general' - I get
Home >> general
in breadcrumb.
If I create static page and put it in 'Static pages/ general' - I get
Home >> general
in breadcrumb. Again.
Though I want to see Home >> News >> General
and
Home >> Static Pages >> General
I can't see vocabulary name in breadcrumbs. Why?
May be vocabularies were not created to be shown in breadcrumbs?
The only way that I see now is to create module that will add link
taxonomy/term/1+2+3+all+terms+in+my+vocabulary
and name the link '[MyVocabularyName]'
May be I misunderstand something and there are easier ways?
Well, another way - I can use one vocabulary
'Content'
with terms 'news', 'static pages', 'news/general', 'static pages/general' - but it means that I can't link specific content types for 'news' and for 'static pages'. And I don't like it...
Comments
Try taxonomy_context module
Try taxonomy_context module and see if that can solve your problem... or try to search drupal.org for similar
Work smarter, not harder!
jeff@digitalsolutions.ph
jhefmv [at] gmail [dot] com
Work smarter, not harder!
Did you search the forum?
I find most of my questions have already been answered. Some of them many times.
Here is a post discussing that topic from 3 days ago. I hope it helps
http://drupal.org/node/31697
else search "breadcrumbs"
gpdinoz
"If we can see further it is because we stand on the shoulders of giants"
Regards
Geoff
This is also an interesting
This is also an interesting read regarding taxonomy
http://drupal.org/node/31828
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
So, I've checked
So, I've checked out
http://drupal.org/node/31697
then
http://drupal.org/node/31828
then
http://www.greenash.net.au/posts/thoughts/hierarchical_url_aliasing
(interesting!)
then
http://ia300827.eu.archive.org/2/items/Creating_a_Hierarchical_site_in_D...
And I came to conclusion that there is no exact and best solution that makes Drupal ready to show correct breadcrumbs for categorized content with 'single-parent' structure site.
If I'm not right, please correct me.
The Problem
So, I wanted to get breadcrumbs for nodes, like
Home >> [vocabulary] >> [term]
also, I wanted to get good aliases for my site:
mysite.com >> mysite.com/content >> mysite.com/content/about
The Solution
I partly solved my problem by patched vocabulary_list.module (that doesn't work for 4.6, but there is a patch - that still has a bug with feeds, too) + patched taxonomy_context.module(that requires vocabulary_list.module to create link to vocabulary in breadcrumbs, but generates incorrect link).
(BTW, I could found out that taxonomy_context.module requires vocabulary_list only when I looked at the code, no info in README)
Pending Problems
1) dinamically generated aliases for vocabularies - pathauto.module doesn't generate alias for vocabulary, that vocabulary_list.module uses. (taxonomy/vocabulary/[vid])
so, we need a patch to pathauto.
2) when you click on taxonomy/vocabulary/[vid] -
vocabulary_list.module shows nodes of the vocabulary + taxonomy_context adds listing of ALL existing terms (I still can't figure out how it works, but if you turn off taxonomy_context, you see only nodes), not terms of given vocabulary.
I think the best solution is to return top terms of given vocabulary.
Step By Step
1) Install fresh drupal 4.6.3
2) Download taxonomy_context.module from
http://drupal.org/files/projects/taxonomy_context-4.6.0.tar.gz
3) Download vocabulary_list.module from
http://drupal.org/files/projects/vocabulary_list-cvs.tar.gz
4) Download pathauto.module from
http://drupal.org/files/projects/pathauto-4.6.0.tar.gz
5) Patch vocabulary_list to make it work with 4.6
http://drupal.org/files/issues/vocabulary_list.patch
6) In taxonomy_context.module, change line 109:
to
Drupal taxonomy is so powerful, that some times it seems to be a problem - not a feature :)
RussianWebStudio: improving the web