silverstripe-blogger icon indicating copy to clipboard operation
silverstripe-blogger copied to clipboard

Feature: Tags should be able to be added in the blog posts on the fly.

Open camfindlay opened this issue 11 years ago • 5 comments

It makes sense to preset the categories as a taxonomic structure. Tags I find are often more a free-flowing folksonomy of metadata added as new blogs are created.

Suggest that you can both preset up some tags and that the are also able to be added on the fly when adding a blog post.

camfindlay avatar Dec 18 '13 00:12 camfindlay

This was originally intended, but I never got around to implementing it.

The plan was to extend the current ListBoxField so that when no tag was found (when typing), an 'Add' button would appear so you could create them on the fly.

Is this what you mean?

micmania1 avatar Dec 18 '13 10:12 micmania1

Yeah man, deffo what I meant :+1: Just posting this here as a place holder to remember to look into this sometime.

My buddy Shea created some functionality along those lines... might be worth a look.

https://github.com/sheadawson/silverstripe-quickaddnew

Good module so far!

camfindlay avatar Dec 19 '13 03:12 camfindlay

Thank you.

I've got a few other ideas/plans so i'll just pop them in tickets so you and others can see where i'm going with this.

micmania1 avatar Dec 20 '13 09:12 micmania1

I was messing about with the chosen dropdown field (Silverstripe ListboxField) to see what it was capable of. It doesn't seems as though you can nicely hook into it at the point we'd need, but you could create an 'add' link when a tag isn't found.

Fiddle: http://jsfiddle.net/MDNwD/46/ (Type something random that it won't find). Chosen Docs: http://harvesthq.github.io/chosen/options.html

micmania1 avatar Dec 27 '13 19:12 micmania1

An update on this: I started implementing a custom field (extension of ListboxField) to add the tags and categories on the fly.

Since posting the previous comment a new event has been added to the chosen dropdown menu 'chosen:no_results' which allows you to hook in to the plugin in a much nicer way.

I'm going to have a go at updating the chosen plugin in the framework which if successful will make it into 3.2. That'll push this back quite a bit, but I think its better to have it done properly rather than hacking it in or going down a totally different route to what the framework already supports.

micmania1 avatar Feb 16 '14 00:02 micmania1