I have a simple tagging system set up like the blog example in the
manual:
TABLE places_tags ( places_id, tags_id ) and that works fine, I've
used this structure for several projects without problems, cake doing
all the set-up automatically - cake is amazing.

Now I'm trying to figure out how to add a weight to tags (e.g. the tag
'Toronto' might be used by 6 places, but I want to add a weight for
each use (basically 'place' is a restaurant or bar with various tags
where a word/tag in the title is going to count for more than the word
appearing in the body of the description. Practical example "Joe's
Bloor St. Italian Restaurant" - the word 'Italian' is going to have a
higher weight in the title (say 1.0) , than in the rest of the listing
(say 0.5).

What I used in a previous system where I managed tags manually, was
add the weight to the link table (e.g. TABLE places_tags ( places_id,
tags_id, weight) ).

Is there a way to get cake to store this weight information
automatically? I know the default select statement cake generates will
have to be replaced (likely with multiple text fields), but I'd
wondering how to structure the data so cake can save the data without
me having to handle updating the places_tags table.

Zoltan
www.YYZtech.ca


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to