I have a site at http://www.digital-copyright.ca where I have put all the electoral districts (Ridings) of Canada into the Taxonomy. I wrote a module which allows people to do postal code lookups to find their riding.
I'm now being asked if I can create per-province menus. The simplest thing for me would be if I could allow people to browse the taxonomy tree and just point them at each province. I can do that for forum topics easily (IE: http://www.digital-copyright.ca/forum/12 is Ontario), but I want to do this for a taxonomy.
What I would like is if http://www.digital-copyright.ca/taxonomy/page/tree/12 or similar would instead of showing articles would show a list of children.
Is anyone working on similar functionality?
Comments
Try this block
you can try and adapt this block:
Drupal is Magic, isn't it ??
Hope it helps
Matteo
taxonomy_context
The taxonomy context module will do something like what it sounds like you have in mind.
Sharing information/workload
In reading your post I'm not so sure what you are asking. Would not the Taxonomy_jsmenu module display your taxonomy the way you want? Also you might want to check out this thread which deals with a taxonomy_content module with a working example.
I checked out your site and am impressed with the amount of work you have done in inputting data. It must have taken a lot of time to input all those ridings. Can this be exported/shared by other people. For example, your electoral ridings taxonomy, in the form of an OPML, or hierarchical file, might be useful to other people.
taxonomy context module is ideal!
Thank you nedjo and Ian Bruk. The taxonomy_context module is exactly what I needed. I have now added a link to http://www.digital-copyright.ca/taxonomy/view/or/1 from the electoral district lookup tool.
Ian,
I didn't key in the information by hand. I have been generating a number of scripts that would loop through all 308 ridings and generate things automatically.
The list I started with is http://www.elections.ca/content.asp?section=cir&document=rep&dir=rep&lan...
The taxonomy was created by first creating the provinces and then running a script that would loop through all 308 ridings. The electoral district ID has the province as the first two digits, and I had put the 2-digit EDID prefix into term_synonym
Example: For Ontario it has "EDID:35"
Then when I created the taxonomy for the ridings I would look up the province and then be able to link to the right province in term_hierarchy. Each electoral district also had an entry in term_synonym.
Example: For Ottawa South (where I live) it has "EDID:35064"
There is a message in each of the 308 districts that is automatically created. I use a query that looks like:
"SELECT tid,name FROM {term_synonym} WHERE name like 'EDID:%' and LENGTH(name) = 10"You wrote , "Can this be exported/shared by other people. For example, your electoral ridings taxonomy, in the form of an OPML, or hierarchical file, might be useful to other people."
I don't know what an OPML file is, but I would be happy to export this information if someone else thought it was useful. Things are a bit busy during the election, however.
Russell McOrmond, Internet Consultant: FLORA Community Consulting