Posted by kbaringer on March 13, 2012 at 8:52pm
Start:
2012-03-20 19:00 - 21:00 America/New_York Organizers:
Event type:
User group meeting
Hi all! Come and join us for another Seacoast Drupal User Group meetup! We're back at the Idea Greenhouse in Durham this month, since the space worked so well last month.
This Meetup will cover:
- Presentation: Custom Module: Rebuild Aliases By Taxonomy (Kevin Baringer)
- Module Show & Tell - Let us know about an interesting or useful module that you've encountered.
- Drupal Tips & Tricks
- Drupal Best Practices
- What's going on in the Drupal Community
- Member questions/issues/challenges - bring your brick walls so we can bust 'em down!
- Open Call for Topics: We are looking for any interesting presentations or topics to share with the group. This could be a new module or theme you've experienced and want to share, a performance tuning technique, an installation profile that you think is particularly swell or anything that other Drupalists will want to hear and discuss.
As always we welcome any newcomers to Drupal as well as experienced Drupalists, and if you're in the area we hope you'll come by to say "hello"!
NOTE: Please use the Signup feature to indicate that you're attending!
Date: Tuesday, March 20th
Time: 7:00pm to 9:00pm
Location: The Idea Greenhouse - 8 Jenkins Court, Suite 401 (Fourth Floor) Durham NH 03824
Directions: Directions to The Idea Greenhouse in Durham
See you there!! - Kevin

Comments
Rebuild Aliases By Taxonomy module
Kevin,
It'd be great to get some background on this module's purpose in advance of the meeting.
Bob
Rebuild Aliases By Taxonomy module - Summary
Great point Bob, thanks!
Here's the brief summary:
The purpose of the Regenerate Aliases By Taxonomy module is to allow the admin to select a Taxonomy (vocab, term, sub-term) and regenerate the PathAuto aliases just for nodes with that Taxonomy. It also gives a field to specifically list node id's to update instead, for more granular control.
Here are more details about when this module would be useful:
Many Drupal sites use Taxonomy to organize groups of nodes, and then use the PathAuto module to build URL aliases based on that Taxonomy. For example:
Taxonomy = Vocab: Fruit Term: Citrus Sub-Term: Orange
Taxonomy = Vocab: Fruit Term: Citrus Sub-Term: Lime
This would result in two url aliases:
mysite.com/fruit/citrus/orange
mysite.com/fruit/citrus/lime
The Challenge arises when you change the Taxonomy for a page. The aliases will not automatically be regenerated when the Taxonomy is changed, so the URL will no longer match the categorization of the node.
For example: In the Taxonomy above change the term "Fruit" to "Color". This will change the categorization of the nodes for "Orange" and "Lime", but the PathAuto aliases that were generated will not be updated.
It is possible to use the Contest management admin page to perform a bulk "update url alias", but this regenerates all aliases using PathAuto, overwriting any custom aliases that were manually set. On a large site, this can be a real headache.
The purpose of the Regenerate Aliases By Taxonomy module is to allow the admin to select a Taxonomy (vocab, term, sub-term) and regenerate the PathAuto aliases just for nodes with that Taxonomy. It also gives a field to specifically list node id's to update instead, for more granular control.
I hope this makes sense! I created the module at work to overcome a specific challenge with our site, but I think that it could potentially be useful in broader contexts, but that's certainly open for discussion on Tuesday. See you there! ~ Kevin
Is this for D6 or D7?
Thanks, Kevin.
Is this for D6 or D7? I ask because core's handling of Taxonomy has changed from 6 to 7.
Bob
Good Question! I wrote it for D6...
Thanks Bob! Excellent point. I wrote this for D6, so it wouldn't work as-is for D7, and may even be unnecessary if this functionality has been added.
I'd be interested in discussing it's application/relevance for D7 tomorrow night, since I'm not too familiar with D7 yet. Even if this module is only applicable to D6 I think it can lead us to a useful discussion about the relationship between Taxonomy and PathAuto in D7. I look forward to talking about it tomorrow!
~ Kevin
Thanks to Everyone that came out last night!
We had a really great meetup last night at the Idea Greenhouse in Durham with healthy attendance, some new faces and some familiar, and there were some great conversations around D6 vs. D7, Taxonomy, Aliases (PathAuto), Views and Views Bulk Operations (VBO) and IDE's. I presented a simple module to regenerate aliases based on a taxonomy term, we brainstormed about future topics and we secured presenters for the next two months! Plus we chatted about movies and the joy and pain of becoming a new Drupalist. I'll work on posting minutes with more details soon. Thanks again everyone! ~ Kevin