feincms / feincms-elephantblog

A blog for FeinCMS
feinheit.ch/labs/
BSD 3-Clause "New" or "Revised" License
42 stars 38 forks source link

archive and tag cloud #11

Closed vencax closed 11 years ago

vencax commented 12 years ago

Hi I wanted tag cloud of categories so I borrowed parts from django_tagging to retrieve usage counts of particular categories and added appropriate templates and templatetag machinery. Then I have completed machinery for archive part. Maybe you will like it and merge. Cheers...

matthiask commented 12 years ago

Thanks!

django-tagging is kind of obsolete though. If we include an officially blessed tagging solution I'd prefer taggit or something else. That being said, I personally don't like tagging all that much and would like to leave this to a third party solution (especially because I don't like the tagging libraries available that much).

vencax commented 12 years ago

All right. But I have borrowed only code that calculates font size from the GROUP BY custom select results. Nothing else. I told myself that adopting the whole code is nonsense i.e. code duplication. But when I look on the amount of code it is small so code adoption would be maybe better choice.

sbaechler commented 12 years ago

Hi Vaclav

A tag cloud would make more sense if it was actually used with tags instead of categories. Just the tagging application should be open.

The best would be if the tag-cloud model could be defined in the settings. We can leave it at Categories by default but it could also be set to 'taggit' or 'tagging'.

Do you have a demo of the archive content and tag cloud in action? What's the idea behind the archive content?

Please don't add .mo files to git. And I cannot merge .po files. Those you should send a separate pull request for.

I rebased your branch so it is based on the current master: https://github.com/sbaechler/feincms-elephantblog/tree/tagcloud

Regards Simon

vencax commented 12 years ago

Hi Simon, I thing I meant to use a tagging application originally but when tag e.g. an article it is additional overhead to select tags. Article has already categories that can be used for tag cloud. Working example is on http://www.elektromobily-os.cz/blog/ under the row "ŠTÍTKY". You could see the archive content there as well. Its idea is to link years and months of articles. It is quite common "widget". The .mo files are generated from .po files. I always add them to repo to skip the generation of the mo file. Is there automatic way how to run generation during setup? Or what is the reason you do not add the mos into repo?

Vasek

On 6 August 2012 18:54, Simon Bächler < reply@reply.github.com

wrote:

Hi Vaclav

A tag cloud would make more sense if it was actually used with tags instead of categories. Just the tagging application should be open.

The best would be if the tag-cloud model could be defined in the settings. We can leave it at Categories by default but it could also be set to 'taggit' or 'tagging'.

Do you have a demo of the archive content and tag cloud in action? What's the idea behind the archive content?

Please don't add .mo files to git. And I cannot merge .po files. Those you should send a separate pull request for.

I rebased your branch so it is based on the current master: https://github.com/sbaechler/feincms-elephantblog/tree/tagcloud

Regards Simon


Reply to this email directly or view it on GitHub:

https://github.com/feincms/feincms-elephantblog/pull/11#issuecomment-7528942