david at kineticode
May 4, 2011, 11:14 AM
On May 2, 2011, at 12:42 PM, Dawn Buie wrote:
> If people are interested I could post diagrams of how I imagine the keyword collection interface looking / working - in case you like the idea and a few of us could work on it for another release.
I think that would better help me to understand what it is you're trying to achieve.
> Anyway in the meantime - Greg suggested a very good way to get the functionality I need, use colons in the keyword fields to represent heirachy.
> For example, I need three keyword collections on my site, Location, ArtForm, Description
> So the first time I add keywords to my story "Murder on the Green Line" I add the following, clicking ADD each time.
> Location : Danforth
> Location : Toronto
> Location : Subway
> ArtForm : Murder Mystery
> ArtForm : Mystery
> ArtForm : Thriller
> Description : Suspense
> Description : Municipal Politics
> Description : Subway Rats
> Greg writes a hack to my install of Bricolage that creates a new method say $keyword->get_hierarchy('1'), which searches for' : ' and returns the text before the : as the first item in the hierarchy.
> Maybe $keyword->get_hierarchy('2') does a search for the child term?
> So in my story templates I could do a search for all keywords and list them by parent, or only look for stories that have a parent keyword that matches 'Location' (and then plot them on an interactive map).
> Something like that. Greg want to correct and clarify?
> Would anybody else see a use for this in their installations?
Hrm. So the point of a keyword hierarchy is so that you can be selective about what keywords you use in a template?
I'm sure I'm just being dense here…