diff --git a/CHANGELOG.md b/CHANGELOG.md index 85a0e3d..95ec2de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,14 @@ # Changelog -## [Unreleased] +## [0.1.0-pre] - 19-02-09 ### Added -+ [19-02-08] Configurable limits for tags (min,max) ++ Configurable limits for tags (min,max) ### Changed -* [19-02-08] Fieldorder in the configuration tab. -* [19-02-08] Added tag limit display to auto-generated field note. +* Field-Order in the configuration tab. +* Added tag limit display to auto-generated field notes. +* Exchanged useless description of add notes with a more usefull one. +* Changed delimiter note of auto-generated user notes. + ## [0.0.2] - 19-02-05 ### Added @@ -19,5 +22,5 @@ * Dependencys of Inputfields InputfieldTagify now requires you to have InputfieldAsmSelect, -Text and -Checkbox installed -[Unreleased]: https://github.com/sebi2020/InputfieldTagify/compare/v0.0.2...HEAD +[0.1.0-pre]: https://github.com/sebi2020/InputfieldTagify/compare/v0.0.2...v0.1.0-pre [0.0.2]: https://github.com/Sebi2020/InputfieldTagify/compare/v0.0.1-pre...v0.0.2 \ No newline at end of file diff --git a/InputfieldTagify.module b/InputfieldTagify.module index a3dea92..ad01d86 100644 --- a/InputfieldTagify.module +++ b/InputfieldTagify.module @@ -38,7 +38,7 @@ class InputfieldTagify extends Inputfield implements InputfieldHasArrayValue { if($maxTags == 0) $maxTags = '"infinity"'; if($this->attr('add_note')) { $delim_str = implode(", ", array_map(array('self','quote'), $this->attr('delimiter'))); - $this->notes = sprintf($this->_('Use %s as a delimiter(s).'), $delim_str); + $this->notes = sprintf($this->_('Use %s to separate tag(s).'), $delim_str); if($maxTags > 0) { $this->notes .= " "; $this->notes .= sprintf($this->_("You can enter a maximum of %d tag(s)."), $maxTags); @@ -81,7 +81,7 @@ class InputfieldTagify extends Inputfield implements InputfieldHasArrayValue { parent::__construct(); $this->setAttribute('jsfile', 'scripts/tagify.min.js'); $this->setAttribute('cssfile', 'css/tagify.css'); - $this->setAttribute('delimiter', array(0)); + $this->setAttribute('delimiter', array(",")); $this->setAttribute('complete', array()); $this->setAttribute('add_note',false); $this->setAttribute('maxTags', 0); @@ -116,7 +116,7 @@ class InputfieldTagify extends Inputfield implements InputfieldHasArrayValue { 'type' => 'InputfieldInteger', 'value' => $this->attr('maxTags'), 'description' => $this->_('Limit tag count to this number'), - 'notes' => $this->_("Use zero if you don't want to limit the number of tags"), + 'notes' => $this->_("Use zero if you don't want to limit the number of tags."), 'columnWidth' => '33', 'zeroNotNull' => 1, 'min' => '0', @@ -126,7 +126,7 @@ class InputfieldTagify extends Inputfield implements InputfieldHasArrayValue { 'name' => 'add_note', 'label' => $this->_('Add Note'), 'icon' => 'question-circle', - 'description' => $this->_('Check this to show a note about the configured notes'), + 'description' => $this->_('Append a note to the inputfield of the form "Use ",",... to separate tag(s). You can enter a maximum of n tag(s).'), 'notes' => $this->_('This will override previous manually setted notes'), 'type' => 'InputfieldCheckbox', 'checked' => $this->attr('add_note'), diff --git a/README.md b/README.md index a03abe5..d86d2aa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,14 @@ # Description **InputfieldTagify** is a [Processwire CMS Module][1] which enables authors to tag pages with a [Tagify][2] driven inputfield. Just put it into your ProcessWire Module folder and install it from the admin interface. To utilize it's full power you should consider to install [FieldtypeTags][3] too. + +# Features +- Configurable + - Tag limit + - Autosuggestions + - Delimiters (Comma, Semicolon, Space) +- Option to add a auto-generated note, to inform the user about the usable delimiters and the configured tag limit. + # License It's licensed under the [GPLv3](https://www.gnu.org/licenses/gpl-3.0.md)