10375 Posts in 2190 Topics by 1707 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1925 Views |
-
TagField Module: Improvements

26 August 2009 at 2:44am
Hello, since I could not immediately see a way to contribute those changes back to the TagField module, I will just put them up here for the time being.
The file attached below is the TagField module with a number of changes:
- Javascript split into original tag.js file (+ async patch) and a TagField.js file with the custom scripts.
- Fixed the custom tags attribute name ('tags' vs. 'taglist') in the javascript loader.
- Prevented empty tags from being created. Especially important since a non-whitespace separator at end of line, as inserted by the script, created empty tags all the time.
- Tags which are no longer needed are now removed from the database. This can be turned off.
- Some minor technical changes.
I hope a maintainer will read this, and probably include a few of the changes into the module. (It works really great by default, awesome work!)
- Javascript split into original tag.js file (+ async patch) and a TagField.js file with the custom scripts.
-
Re: TagField Module: Improvements

12 September 2009 at 1:06pm
Hey there,
thanks very much for your work on the module! I've reflected some of these changes in
http://open.silverstripe.com/changeset/86151
http://open.silverstripe.com/changeset/86152In general, your work will be much more "noticeable" if you post this stuff to our bugtracker, as documented on http://silverstripe.org/tag-field-module. Also, it is hard to determine the actual code changes if you submit the full module files, please use a patch format instead (see http://doc.silverstripe.com/doku.php?id=submitting-patches). Also, I've added unit tests for the deletion feature you added - have a look through them, we appreciate tests being submitted with patches.
Thanks again!
Ingo -
Re: TagField Module: Improvements

14 November 2009 at 1:55am
Hi
I looked at the docs of tag field.
I have SS2.3.3, data object manager Article Page & Holder code Article Page & Holder SS where i suppose to insert the cod because in the docs isn't specified !
THX
-
Re: TagField Module: Improvements

11 January 2011 at 5:02pm
How do I set the Separator for tagfield?
-
Re: TagField Module: Improvements

3 November 2011 at 6:20pm
like this:
$tagField = new TagField("Tags", _t("EventEntry.TS", "Tags (comma sep.)"));
$tagField->setSeparator(",");
| 1925 Views | ||
|
Page:
1
|
Go to Top |




