SilvaBlog - Categories
Roman Joost <rj-w5oghCfH6z/[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Organization | gocept GmbH & Co. KG |
| Message-ID | <20060225103009.GC2973@clyde> |
Hi folks,
I used the last free week to hack on SilvaBlog again. Got most of the
refactoring done and at least the comment managment is working now.
Sure, delicious style tagging and trackback functionality will follow
Eric ;)
Anyways, I run into one problem with storing and retreaving categories
aka keywords.
The current version of SilvaBlog uses folders to manage every
article in a category. Works well so far, but you can't file an
article in more than one category.
I thought, after the refactoring, using the silva metadata system
should be the right place were users can store categories. Why not
using the 'keywords' metadata field as categories then.
At least I need support for:
1. retrieving all categories my articles are published under.
2. retrieving all articles for a given category.
To make this work, I thought about adding a new catalog index which
indexes the silva metadata element 'keywords' to my blog_catalog.
Unfortunately, I can't seem to add a ProxyIndex in my
blog_catalog for keywords, if I'm trying to use the methods I found in
Index.py of SilvaMetadata.
My current implementation adds a new ProxyIndex for keywords to the
service_catalog and I'm not sure if thats the way it should be. I guess
this index has to be added to my blog_catalog, because it is only blog
specific, right?
There is currently no way to call 'uniqueValuesFor' for the ProxyIndex
to retrieve all categories. Is there a specific reason why this isn't
implemented or was it just lack of time/resources?
Is my approach to (mis-)use the silva metadata system for storing
categories/keywords a no-brainer? Is there maybe another Index I can use
the retrieve values from the metadata system? Does somebody can think
of another (maybe easier) solution?
I think using the catalog for this problems is the best solution I can
come up with. Running over hundreds of objects in a folder in the worst
case seems awkward.
Thanks and Greetings,
--
Róman Joost
gocept gmbh & co. kg Forsterstrasse 29 06112 Halle/Saale
fon +49 (0)345 122 98 89 2
_______________________________________________
silva-dev mailing list
[email protected]
https://infrae.com/mailman/listinfo/silva-dev
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFEADGx8CscaEkpx0IRAq3xAJ9tQQ6+YLklGzKTxG8T7ktsu0VqVgCdFS5x WwCsu4PL4oArICHVr2J7ouc= =aAv8 -----END PGP SIGNATURE-----