Hey,
I'm using TG1 and I'm trying to create a tag cloud using Elixir
without success.
The relevant parts of my model file are here:
http://paste.turbogears.org/paste/22703
I found this works for SA:
tag_q = meta.Session.query(func.count("*").label("tagcount"),
model.Tag)
tag_r = tag_q.filter
(model.Tag.id==model.pagetag_table.c.tagid).group_by(model.Tag.id).all
()
But using Elixir, I don't seem to be able to reach the table which
holds the links between the items and the tags - the "pagetag_table".
What's the Elixir solution for doing it? How can I count how many
items I have in a tag?
Thanks.
Yo'av
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---