ManagerManager plugin fo MODx Evolution

# Changelog

### 0.3.11 (2012.02.15) by DivanDesign

- Bugfix: ManagerManager plugin settings last tab (functions/tabs.inc.php: line 132)
- New: mm_ddAutoFolders widget - Automatically move documents (OnBeforeDocFormSave event) based on their date (publication date; any date in tv) into folders of year and month (like 2012/02/).
- mm_ddSetFieldValue update to 1.0.2
  - Bugfix: Date format (widgets/ddsetfieldvalue/ddsetfieldvalue.php: line 34, 37)
- mm_ddGMap update to 1.0.2
  - New: Multilingual map (widgets/ddgmap/ddgmap.php: line 14, 103)
- Added documentation for new widgets: mm_ddGMap, mm_ddYMap, mm_ddSetFieldValue, mm_ddMaxLength, mm_ddAutoFolders (docs/widgets.htm)
- Change style of documentation (docs/css/mm.css & minor changes of all html files in docs/) like you see =)

### 0.3.10 (2012.01.16) by DivanDesign

- Bugfix: Fix jQ selector for rules mm_moveFieldsToTab (functions/fields.inc.php: line 274)
- New: mm_default now support all fields (for TV like tv99, where 12 - id of TV) (functions/fieldvalues.inc.php: line 170)
- New: ManagerManager now support OnBeforeDocFormSave event:
  - Initialization on mm.inc.php: line 450-452
  - Added validating event on functions/fields.inc.php: line 17, 81, 161, 213, 318
  - Added validating event on functions/fieldvalues.inc.php: line 25, 199, 298
  - Added validating event on functions/sections.inc.php: line 16
  - Added validating event on functions/tabs.inc.php: line 15, 65, 132
  - Added validating event on functions/templates.inc.php: line 17
  - Added validating event on widgets/!template/!template.php: line 12. Moved the output to the browser into if on widgets/!template.php: line 59
  - Added validating event on widgets/accessdenied/accessdenied.php: line 16. Moved the output to the browser into if on widgets/!template.php: line 34
  - Added validating event on widgets/colors/colors.php: line 12
  - Added validating event on widgets/showimagetvs/showimagetvs.php: line 15
  - Added validating event on widgets/tags/tags.php: line 12. Moved the output to the browser into if on widgets/tags/tags.php: line 98
- New: mm_ddGMap widget - integrate the Google Maps
- New: mm_ddYMap widget - integrate the Yandex Maps
- New: mm_ddSetFieldValue widget - sets a value for a field (always!)
- New: mm_ddMaxLength widget - limit the number of characters in the TV (like the Twitter)
- jQuery update to 1.7.1 (plugin.txt: line 33, 34)
- New event (OnBeforeDocFormSave) in installation instuctions (docs/install.htm)
- Credits in docs/index.htm =)

### 0.3.9

- Bugfix: PHP error with versions < 5.2.3 (thanks mamalovesyou)
- Bugfix: 'If template category is empty, hide the optgroup' ... code can hide all templates in the list in Firefox
- New: You can now move content field to a new tab (thanks ChuckTrukk)
- Bugfix: mm_default dates now respect the date format set in Site Configuration (thanks Bird)
- Bugfix: hiding access tabs when metatags tab is present (thanks wdnz) and also renaming tabs under similar circumstances
- Bugfix: fix ShowImageTVs widget, which wasn't always updating image previews after selecting a new one from the file browser
- Bugfix: TVs of type URL weren't moved to new tabs correctly

### 0.3.8

- New: mm_requireFields - makes fields required. Originally by tobyl. Modified to take advantage of recent improvements / changes to MM, and to add a visual indication of required fields
- Bugfix: Prevent double encoding of HTML entities (thanks David Andrews)
- Bugfix: TV's section is broken when there's a URL TV (thanks Jean-Christophe Brebion / Mikko Lammi)
- Various minor bugfixes
- Minor documentation updates

### 0.3.7

- New: If all templates for a category are hidden, the category is removed from the templates dropdown
- Various other minor bugfixes

### 0.3.6

- Bugfix: Could not hide content field
- Bugfix: Couldn't create tabs under certain circumstances
- mm_rules.inc.php is now empty by default
- Documentation updates

### 0.3.5

- Bugfix: Fix clash with Content History plugin (thanks TobyL)
- Bugfix: Tweak to handling spaces in tag widget
- Bugfix: Check boxes can now be moved to new tabs
- Bugfix: When no template variables are left in the TV section, its header is now hidden properly
- New: mm_default now supports content_type
- New: synch fields now works with text areas

### 0.3.4

- Improved configuration - now uses plugin GUI
- You can now specify TV names with or without the TV prefix. If there is a clash with one of the default internal fieldnames, the internal field will take priority.
- You can no longer hide or rename the preview tab, as it is now a button
- You can no longer hide or rename the docsettings sections, as it no longer exists
- Bugfix: Many many changes for compatibility with Evolution 1.0 (more testing needed) - this version is no longer compatible with ModX versions < 1.0.0
- New: Option to remove deprecated TV types now does something!
- Add support for Resource Type field (1.0.1)
- Added ability to hide/rename access permissions tab (1.0.1)
- You can no longer hide or rename the meta tab, as it has been deprecated (1.0.1)
- You can no longer hide or rename the access permissions section, as it is now a tab (1.0.1)

### 0.3.2

- Bugfix: Problem with Tag widget paths on new documents
- Bugfix: TV section is now renamed / hidden correctly on weblinks (thanks Metaller)
- Bugfix: Hiding preview tab when manager role disallows access to meta/keywords now works properly (thanks netProphET)
- Bugfix: Based on above, renaming preview tab when manager role disallows access to meta/keywords now works properly
- New: Add weblink field to list of available fields (thanks Metaller)
- New: AccessDenied widget - prevents access to specific document IDs (thanks Metaller)
- New: When is_richtext has an mm_default of false, which_editor is also set

### 0.3.1

- Bugfix: error when creating documents and using showimagestvs (thanks Rasc)
- Bugfix: tags / colours fail when Modx is installed in a subdir (thanks smiley)
- Bugfix: showimagetvs would give a Javascript error on pages with no image if it was applied in a rule
- New: Better error handling

### 0.3

- New: Tag entry is now in the TV definition form, settable on field from there.
- New: Removed deprecated TV types from the TV definition form
- New: Color picker widget (using Farbtastic picker)
- New: Image preview widget (emulates showimagestvs plugin on image fields)
- New: Documentation improved and made easier to navigate!
- New: Externalise widgets' code, so they can be easily added to
- New: New widget template, if other developers want to add widgets
- New: Rules files are separated - either to a chunk OR external file
- New: Alert if showimagestvs is also installed (it clashes with MM) - workaround is to use the MM version
- Bugfix: hiding some fields wasn't working
- Bugfix: fix tag chooser layout in IE
- Bugfix: tags not always being saved
- Bugfix: javascript error when widget requested on template without that field
- Bugfix: pub/unpub date were not updated if moved to a different tab (thanks Perrine)
- Bugfix: Moved TVs were hiding until tab refresh in IE7 (thanks Dimmy)
- Change: Various Javascript and PHP optimisations
- Change: Split functions out into separate files, so they're easier to deal with / modify

### 0.2.8

- Bugfix: hiding templates now works in Opera
- Bugfix: typo in mm_hideTemplates
- New: Uses Google AJAX libraries API (in the absence of a local copy of jQuery)

### 0.2.7

- New: You can now hide and rename sections of the doc editing page (the bits labelled "Access Permissions", "Document Settings" etc) (based on suggestion by Metaller)
- New: You can now set a default value via mm_default for searchable (thanks stefan) and other page settings (container; rich text; log visit; published; cacheable; clear cache)
- New: Hide templates from the templates dropdown with mm_hideTemplates (thanks Metaller)
- New: Template variables can be hidden with mm_hideFields
- Bugfix: Fix bug with tag widget in IE6
- Bugfix: Fix bug with template names containing quotes
- Bugfix: Incorrectly define current template if templates changed in dropdown list and page is reloaded (thanks Metaller)
- Bugfix: Fix JS error with tag editor (thanks ProWebscape)

### 0.2.6

- Added first extra widget - tag selection widget
- Bug fix on mm_default
- mm_default now supports default values for show/hide in menu
- Bug fix so roles and templates are properly shown for reference when editing ManagerManager plugin
- Small code optimisations

### 0.2.5

- Make more compatible with PHP5
- Reorganisation of files
- Various bug and documentation fixes

### 0.2.4.1

- Fix typos in plugin.txt

### 0.2.4

- Fix typo in mm_renameTab()

### 0.2.3

- Customise jquery location, and use jquery.com if none available locally
- Renamed mm_hideField to mm_hideFields to more accurately reflect its function and be consistent
- Renamed mm_hideTab to mm_hideTabs to more accurately reflect its function and be consistent
- When editing the plugin text (to create rules) a new tab is added which details all the IDs of the roles and templates in the site - hopefully a timesaver