Released on 2024-12-05
Released on 2024-12-05
- Fix multi select input types not being initialised properly when data loaded [S46526]
Released on 2024-11-27
Released on 2024-11-27
- Add caching to dropdown and multi_select input types; this avoids sending lots of requests to populate options if lots of the same dropdown fields exist on the page [#713/S41295]
- Add [[+field_type_idx]] placeholder to field templates that increases for every instance of the field on a page [S45312]
- Add @JSON template option that easily converts the entire field into JSON [#703]
- Add collapsed option to repeaters which collapses all rows except the first [#717]
- Fix the parser resetting to the MODX parser after processing a layout field [#720]
- Fix deprecation warnings in sass build
- Fix repeater item 'bars' icon not displaying in MODX 3.x [#716]
- Fix potential error in repeater input processing if no rows are set [S44045]
- Fix 'Could not find input 0 for parsing' error getting logged caused by a type mismatch
Released on 2024-05-02
Released on 2024-05-02
- Fix table input context menu being hidden when displayed in a template window
- Add fallbacks to the contentblocks default media source, and then the core default media source if the image input default media source is empty when parsing path properties
- Fix error if no properties exist on a field [F2535]
Released on 2024-02-23
Released on 2024-02-23
- Disable creating image directories on page render by default. It can be enabled with the contentblocks.image.create_directories system setting. This behavior was introduced in 1.13.2 as part of fixing the media source not opening correctly if the path does not already exist, but we're getting reports of unexpected compatibility issues with Filesluggy.
- We're still parsing the paths on page render regardless of the setting to mostly fix the original issue.
Released on 2024-02-13
Released on 2024-02-13
- Fix error on MODX 2.x, introduced in 1.13.2 [S39151]
Released on 2024-01-31
Released on 2024-01-31
- Fix opening the media browser with an unparsed path
- Fix multiselect input not outputting content when a wrapper template wasn't set [S38992]
Released on 2023-11-21
Released on 2023-11-21
- Remove stray debug log message introduced in 1.13.0 [S37824]
Released on 2023-08-18
Released on 2023-08-18
- Add support for @PDO_FILE in templating. This acts like pdoTools' @FILE, so make sure `pdotools_elements_path` is set correctly. Special thanks to Joeke Kloosterman for providing this feature.
- Fix properties not being parsed on the snippet input when a snippet property value contains 1
- Fix showing category names when there are more than 20 [#697]
- imagine/imagine updated from 1.3.3 to 1.3.5
Released on 2023-05-20
Released on 2023-05-20
- Make the layout actions dropdown a little wider for languages with longer words [F2415]
- Fix TinyMCE not rendering correctly when used as a modal setting. [#692]
Released on 2022-12-01
Released on 2022-12-02
- Make sure "layout_only_nested" fix is added to minified JS [#679]
- Add wrapperTpl to multi-select input
- Make sure rebuilding content uses the same logic for checking type/MODX3 type as the save plugin
- Avoid emptying the content if multiple plugins fire on ContentBlocks_RenderContent and the first one returns empty content [#689]
- imagine/imagine updated from 1.3.2 to 1.3.3
Released on 2022-10-31
Released on 2022-10-31
- Fix "layout_only_nested" layouts not showing as available when switching on nested layouts [#679]
- Add resolver to update contentblocks.accepted_resource_types ensuring MODX3 class names are included [#682]
- Fix chunk input previews not working in MODX3 [#675]
- Avoid "PHP warning: foreach() argument must be of type array|object, null given" error [S33912]
- imagine/imagine updated from 1.2.4 to 1.3.2
- modmore/alpacka updated from v1.0.0-pl to v1.0.2
Released on 2022-07-01
Released on 2022-07-01
- Fix z-index for select and multi-select when they open up instead of down. [#659]
- Fix strict type checks not matching in MODX3 [S32003]; resolves resource/chunk/parser/media source references no longer resolving in cbGetFieldContent, cbHasField, chunk inputs, image uploads
- Fix incorrect array index when packaging the ContentBlocks_RenderContent event. [#673]
- Add MODX\Revolution\modDocument, Articles\Model\Article and Collections\Model\CollectionContainer to contentblocks.accepted_resource_types system setting. [#669]
- Make sure new form customization regions aren't removed when rendering the canvas in MODX3. [#672]
Released on 2022-01-28
Released on 2022-01-28
- Fix multi-select and color-picker not rendering correctly when used as a field setting in a modal. [#656]
- Fix output missing for multi-select field setting. [#655]
- Fix canvas margin in MODX 3 when positioned as a block, and add padding to template builder. [#654]
- Fix template builder breaking when contentblocks.canvas_position is set to block, tab1 or tab2. [#657]
- Fix some icons not rendering in MODX 3 due to the switch to FontAwesome 5. [#658]
Released on 2022-01-07
Released on 2022-01-07
Improvements:
- Added an optional separator property to multi-select input-type and setting. [#645]
Bug fixes:
- Fix dropdown fields not loading correctly on templates [47497be]
- Fix multi-select fields not loading correctly on templates [54dede5]
- Fix z-index issue for search-enabled dropdown fields on modals when editing templates [b4bdff4]
Released on 2021-12-16
Released on 2021-12-16
Improvements:
- Allow for animated crops with image input types.
- Add typeahead mode for standard dropdown fields, and select settings. [#642]
Bug fixes:
- Fix new description fields not being updated for settings. [#637]
- Fix grids not resizing correctly on manager page. [#640]
- Fix multi-select settings not rendering correctly on modals [#636]
- Fix multi-select exposed as settings only rendering the last one if more than one layout of the same type used [#638]
- Fix with of 'Use ContentBlocks?' combo for MODX 3.x [#633]
- Fix width of 'no default layout' error textarea [#633]
- Fix 'undefined' showing in template field when creating new input type [#634]
- Fix error when using runProcessor while updating layout setting in MODX 3.x [#635]
- Fix broken url for "Layout requested but does not exist" error
- Fix hidden spacer tab being clickable on manager page. [#641]
- Fix image upload processing not preserving animation. [#639]
Released on 2021-11-19
Released on 2021-11-18
- Fix incorrectly bundled CSS for the multi select input
- Fix issues previewing resources with MagicPreview that do not use ContentBlocks
Released on 2021-11-17
Released on 2021-11-17
New features:
- Now supports MagicPreview (v1.1+) for previewing content changes before saving them
- Add a content description to fields, which can be used to provide additional information or instructions to editors on the canvas [#340]
- Allow rebuilding content for a single specific context [#604]
- Add a simple Checkbox input type, useful especially within repeaters [#577]
- Add a Color Picker input and setting type for easy selection of custom colors [#460]
- Add a multi select input and setting type [#327]
Improvements:
- Widen the modals in the component a bit more for easier template editing [#597]
- Show subfield keys and widths when editing repeaters [#617]
- Pass context key along with the ajax request for the dropdown field [#563]
Bug fixes:
- Fix TinyMCE-RTE 2.x not working after drag-and-drop [#614]
- Fix TinyMCE-RTE 2.x only loading the first time when opened as a modal setting [#614]
- Fix TinyMCE-RTE 2.x z-index issue with both link dialog and drop-down menus [#614]
- Fix image cropper not finding the source file if image source was changed from default on select [#631]
Released on 2021-10-27
Released on 2021-10-27
- Allow installation and proper license handling on MODX 3.0.0-alpha3
Released on 2021-05-22
Released on 2021-05-22
- Preserve transparency in uploaded images [S26789,S27919]
- Preserve transparency in the displayed image when a "Manager Thumbnail Size" is set on an image field [#533]
- Use checkered background in the cropper for images with transparency
- Disable import/export buttons on repeater groups, as that will not import properly elsewhere
- Duplicating a repeater will now also duplicate its subfields [S27932]
- Redefine default database storage engine as InnoDB
- Fix scoping on image input so exposed image settings do not affect the parent image field [#569]
Released on 2021-03-04
Released on 2021-03-05
- Refactor exports and imports to support nested fields (repeaters) and to also include categories. The XML syntax has changed to support this and older exports will need to be recreated to successfully import repeaters. [#350]
- Support @FILE binding for all templates [#501]
- Exporting fields and layouts now take into account the category filter, so you can export only elements in a specific category
- Component now shows the installed ContentBlocks version in the footer
- Fix missing text in confirm window for exporting templates
- Fix static chunks in cbGetFieldContent not updating [#584]
- Prevent changing the color palette on image uploads [S26789]
Released on 2021-02-19
Released on 2021-02-19
- Prevent fatal error when working with crops/uploading images if the Exif extension isn't installed or allow_url_fopen is disabled
- Update Ace to fix issue with the code input that started appearing in v1.9.0 [#596]
- Replace library used for autogrowing textareas and quote inputs, to provide a better user experience and more reliable autosizing. For third party compatibility, the old library is still shipped as part of ContentBlocks. [#594]
- Prevent literal "NULL" being rendered in the resource link dropdown if the introtext is set to NULL on the database [#588]
- Allow enabling/disabling per template by using template properties: https://docs.modmore.com/en/ContentBlocks/v1.x/Configuration.html#page_Enable%2FDisable+by+template [#559]
Released on 2021-02-09
Released on 2021-02-09
New features:
- Uploaded images can now be automatically cropped to a maximum size (defaulting to 4096x4096px) and have its embedded meta data removed (disabled by default)
- Uploaded images are now automatically rotated if needed
- Add redactor to contentblocks.defaults_allowed_inputs to allow Redactor 3 input types to be recognized as rich text. This only applies on new installations, so if you're upgrading, you'll need to add this to the setting manually. [#576]
- Relax required PHP version to 7.2+, while still checking for recommended versions
- Support basic placeholders in @CHUNK template tags, e.g. @CHUNK SomeChunk-[[+value]] [#593]
- Added a handful of new icons (thanks Yana!) [#364]
Bug fixes, improvements:
- Fix installation on MODX3 [F2065]
- Improve tooltip handling when adding content or layouts [S24342]
- Prevent fatal errors in snippets and plugin if an uninstallation fails [S25384]
- Fix saving availability options when creating a new field [#575]
- Prevent session locking when using PHP sessions from freezing the rebuild content console [#574/F1991]
- Update Imagine to v1.2.4 and add utility method getImagine() to ContentBlocks service class
- Move vendor directory one folder up
Released on 2020-02-07
Released on 2020-02-07
- Now compatible with MODX3 (alpha2)
- Fix pagination missing from the chunk select, when editing a Chunk field that has a chunk selected [S21664]
- Small license check fixes
- Fix grid column sizes on MODX3
- Fix not being instantiated on MODX3 due to changed class names
- Prevent installation when server requirements aren't met
Released on 2019-11-15
Released on 2019-11-15
- Fix consistent "Input was requested but does not exist" false-negative [S21451]
Released on 2019-11-11
Released on 2019-11-11
- Prevent enter from triggering deleting an image from a gallery [S21323]
- Prevent textarea styling from affecting the code view in Redactor 3
- Make sure all assets for input types are always loaded, to fix issues with creating new fields from third-party input types
- Make sure a selected chunk is shown when the chunk is not in the first set of 20 chunks [S20691]
Released on 2019-08-08
Released on 2019-08-08
- Update crop file if it already exists [S20407]
- Make sure cropper errors are visible [S20651]
- Set a JavaScript variable to indicate ContentBlocks will render the content field; this way rich text editors can decide to not render the content in the background. This improves manager performance and prevents errors from getting triggered in the developer console (with Redactor 2.3.7).
- Add missing ContentBlocks_RenderContent event to package
- Make sure event output caused by content rendering (e.g. fetching TV paths or render events) does not leak out of ContentBlocks::generateHtml [S20522]
- Update the upload processor to catch renamed files on MODX 3 (note: MODX 3 is not officially supported yet) [#558]
Released on 2019-07-02
Released on 2019-07-02
- Fix exceptions in parsing resources not being handled when rebuilding content
- Fix incorrect variable usage causing error in parser exception
- Fix inserting links in Redactor rich text settings due to z-index issues [S20388]
- Fix potential read errors for getimagesize() in gallery input
Released on 2019-06-21
Released on 2019-06-21
- Add 3 new icons (layout_img_left, layout_img_right, layout_img_top) to the standard set, thanks to Ralph de Groot [S20181]
- Fix "Remove Image" buttons appearing behind image preview on settings [S20293, S20228, F1854]
- Fix link fields not showing field label when a resource was selected [F1850]
Released on 2019-05-27
Released on 2019-05-27
- Remove always-visible scrollbar from image crop previews [S20151]
- Allow long labels on text/dropdown fields to flow normally [S20099]
- Clamp x/y positions of image crops to positive integers [#549]
Released on 2019-03-11
Released on 2019-03-11
- Add [[+layout_title]] to fields as well [S19368]
- Prevent exception when using cbGetFieldContent to load a layout field [#441]
Released on 2019-02-08
Released on 2019-02-08
- Add svg to the default accepted file types on the image input
- Fix the layout title not being set since 1.8.6 [S19368]
- Fix issues with templates being invisible with Ace installed and ace.grow enabled [S19331]
- Fix hitting enter in a list causing gallery items to be removed [#546]
- Integrate new minimum requirement checks per https://www.modmore.com/blog/2019/minimum-php-requirements/
Released on 2019-01-23
Released on 2019-01-23
- The built-in layout title (click the layout name in the canvas) is now available in both [[+title]] and [[+layout_title]] placeholders
- When you have a layout setting with key "title", your layout setting now overrides the built-in layout title [S19264]
- Fix crops not being unset when removing an image from an image input [#542]
Released on 2019-01-08
Released on 2019-01-08
- Fix image crops not using resource-based placeholders in the path [S18787]
- Fix array values (e.g. image crops) not being available in @CHUNK templates [#531]
- Add warning to the rich text setting type that it only works when exposed in a modal window
Released on 2018-12-28
Released on 2018-12-28
- Fix installation on MODX3 again [S19048]
Released on 2018-12-04
Released on 2018-12-04
- Fix drag & drop ordering of settings not working anymore [S18381]
- Fix image buttons not shown when an image setting is added to an image field [#539]
- Fix help links in the ContentBlocks component [#536]
- Tweak long setting labels to look prettier [#535]
- When rebuilding content, make sure [[+unique_idx]] is reset between resources [#532]
- Add Layout Settings to field templates as [[+layout_setting.SETTING_KEY]] [#529]
- Speed up rebuild content by only sleeping between processed resources, allowing skipped resources to move faster
- Remove unused phpthumb library
- Update package encryption to encryptedVehicle 2.0
- Package installation only checks the server requirements once now, before the rest of the installation
Released on 2018-10-05
Released on 2018-10-05
- Add crop_jpeg_quality and crop_png_compression system settings to influence the quality of generated images
- Fix missing templates for the cropper when only the "Image with Title" input and not "Image" is used [S17718]
Released on 2018-08-17
Released on 2018-08-17
- Prevent E_NOTICE undefined index resource in cbHasField [S17468]
- Fix image preview not showing up for image settings [S17485,17456]
- Fix image preview not showing up for the image with title input type [S17455]
- Remove stray console.log in image.js related to cropper configuration
- Fix cropper opening automatically even when it's disabled [S17455]
- Fix title on the image with title input type not saving [S17461]
Released on 2018-08-10
Released on 2018-08-10
- Support multiple fields in cbHasField by providing a comma separated list to the &field property [S16875]
- Fix padding and scroll jumpiness caused by a clearfix on the contentblocks wrapper
- Fix the template builder not initialising
- Make [[+total]] available in the row templates of repeaters [S17261]
- If only one crop is configured on an image, automatically close the cropper after saving [#522]
- Add property to image fields to automatically open the cropper when an image is added [#520]
- Add property to image fields to replace the manager thumbnail with a defined crop when set [#521]
- Automatically focus search fields when opening add field/layout modal [#518]
- Add missing title to condensed list view icon [#512]
- Prevent users from dragging/inserting more than the maximum amount of configured images into a gallery field [#506]
- Fix image cropper not opening when clicking on the crop preview of an image (instead of image_with_title) input type
- Don't show crops preview for crops that were removed from the image configuration [#524]
Released on 2018-07-10 (Pre-releases Channel)
Released on 2018-07-11
- Fix "Cropper is not defined" error trying to open the cropper due to dependency missing in compiled assets
- Fix preview and crop images not loading in cropper when the file depending on where it is in the filesystem (or remote)
- Fix issues creating crops server-side related to media source settings, should now support S3 and other source types as well
- Fix save button not restoring to "Save" when an error occurs
Released on 2018-07-10 (Pre-releases Channel)
Released on 2018-07-11
New features:
- Add a new "Mini" layout style on repeaters for list-type repeaters where each entry is compressed into a single line
- Add canvas_position setting to determine where the content goes: inherit (default as before), block, tab1 or tab2; primarily meant for MODX3.
- Add image cropper to image and image with title fields [#259]
- Add rich text field/layout setting type, currently only supported when added to the setting modal window
Improvements:
- Make sure every import creates a backup export in core/export/
- Make the template builder use more of the screen size
- Change top menu from 2.2-style actions to namespace based controller routing
- Use proper semantic button on gallery items
- Modal window for settings has been made bigger
Bug fixes:
- Fix select boxes having the wrong height in some cases
- Fix installation in MODX3.
- Fix case-sensitive file extension check on upload preventing width/height from being returned to image inputs [S17074]
- Fix incorrect icon on Link field in the Basic Set created during installation [#510]
- Fix missing lexicon for process_tags, remove_content_dom setting, template descriptions for textarea and snippet input types [#509, #508, #511]
- Fix manager columns property on a repeater affecting nested repeaters [S17076]
Released on 2018-03-14
- Fix incorrect default icon for the list input type [S16160]
- Add tinyrte_lazy_init setting. When enabled, tinyrte instances are only created when focusing an input, saving memory if you have lots of fields
- Translation updates [S16211]
Released on 2018-02-06
- Fix license check running daily instead of weekly
Released on 2018-01-22
- Update modmore/alpacka to 1.0.0-pl to strip out left-over placeholders in upload paths (e.g. [[+alias]] if resource isn't created yet) [#469]
- Make sure $modx->resource is available before using it in cbGetFieldContent/cbHasField [#502]
Released on 2017-12-18
- Fix image thumbnails not working when the first media source does not point to the site root [S15704]
Released on 2017-09-12
- Make sure saving the resource before a dropdown fields' options are loaded doesn't reset the value to the default [S14646]
- Fix modx browser being inaccessible when choosing an image for an image settings set to show in a modal [#495]
Released on 2017-09-04
- Add lexicon support for chunk properties
- Fix weird positioning on lists items if tinyrte is enabled [#493]
Released on 2017-08-07 (Pre-releases Channel)
- Fix error due to missing default context in template builder
Released on 2017-08-03 (Pre-releases Channel)
New features:
- Add layout switcher to change a layout to a different type while preserving content [#355]
- Add crumbs to the resource search to give more context about a specific resource
- Custom layout titles are now available with [[+title]] in layout templates [S12252]
- Image settings on field and layouts! [#89]
- Add search to add field/layout modals [#329]
- Add 2 new view modes for field/layout modals: one showing descriptions, and one more condensed (default configurable via system setting)
- Field/layout templates now support @CHUNK to create chunk tags with all available properties [#461]
- Now enabled on the LocationResources custom resource type by default
- Repeater items can now be displayed as columns instead of just rows
Improvements:
- Add pointer cursor to the link dropdown to indicate it can be clicked
- "Choose" button on image, gallery, and file fields opens to correct path within specified media source
Bug Fixes:
- The (hidden) content DOM elements will now be removed after ContentBlocks is initialised. This can help prevent
issues with markup conflicting with the manager. Disable the contentblocks.remove_content_dom setting to stop this.
Released on 2017-06-13
- Fix inability to collapse newly created repeater rows [#477]
- Fix incorrect multi-row layout in repeaters when using tinyrte on subfields [#476]
- Fix TinyMCE/TinyMCE RTE/CKEditor breaking when drag and dropping repeater rows [#473]
- Fix non-latin characters preventing recognition of an email address in link input/setting [#471]
- Fix inability to delete repeater rows inside a fixed-size repeater [#470]
- Fix incorrect sortorder when drag and drop sorting items in the component on page 2 and beyond [#456]
- Add missing drag and drop sorting on templates
- Fix custom titles not being stored for nested layouts [#458]
Released on 2017-03-31
- Accept empty property values as filled-in values [S11382]
- Fix missing key/width fields when duplicating a subfield in a repeater [S11386]
- Fix PHP 5.3 compatibility in dropdown getlist processor [S11400]
- Use [[+value]] instead of [[+tag]] on chunk fields for consistency [S11424]
- Fix TinyMCE RTE [#378] and CKEditor [#267] instances breaking when fields are dragged and dropped or layouts reordered
Released on 2017-03-07
- Fix selected resource title not being shown on link input types [#363]
- Fix default template assignment based on context [#449]
- Fix issue expanding/collapsing repeater (items) within a repeater [S10341]
- Fix error when opening the template builder [S11314]
- Fix invalid export filenames on windows due to : character
- Make component alignment consistent with the rest of MODX [#454]
Released on 2017-02-08
- Fix issue repeatedly opening the media browser on the file input type [S11088]
- Make sure $modx->resource is available to a dropdown populating snippet [#445]
Released on 2017-01-31
- Fix 401 unauthorized on the link typeahead prefetch [#447]
- Fix rebuilding content not checking for a context-specific use_contentblocks setting [#11060]
- Restore compatibility with PHP 5.3
- Fix bug where unlimited-item repeaters (maxItems == 0) could not be sorted
Released on 2017-01-19
- Remove stray console.log statement
- Update Alpacka to 0.4.0
Released on 2017-01-02 (Pre-releases Channel)
Bug fixes:
- Fix bug with repeater subfields not being found
- Fix bug with getLayoutFields which resulted in incorrect fields being returned if a layout contained a nested layout field
- Related to getLayoutFields bug fix, test if we're in a "repeat layout" event when adding layout fields; if so, don't show the "add layout" modal
Released on 2016-12-22 (Pre-releases Channel)
New features & improvements:
- Add ability to insert images by providing a url; images are downloaded to the server [#351]
- Hide Delete Item button on repeaters that have a fixed number of items [F392]
- If repeaters are set to a fixed number of 1 item, the item collapse button is also hidden [F392]
- Add checkered background for transparent images [S9968]
- Add support for the gallery input type in &innerLimit property of the cbGetFieldContent snippet [S9985]
- Ctrl/Cmd clicking a video search result will open it in a new tab
- Attempting to delete the default layout or field will show an error [#436]
- Ability to drag files from the file tree into image/gallery fields [#179]
- Internal dependencies (jquery, file upload, typeahead libs) have been updated [#433]
- Add defaults_allowed_inputs setting to manage which input types are available as field targets in default templates [S10491]
- Add show_resource_option setting, disable it to hide the "Use ContentBlocks" option on resources [#280]
- Show clear warning when layouts can not be found when generating the content to prevent broken pages [#405]
Accessibility/usability-related improvements:
- Fix missing focus styles on selects, text inputs and radio/checkbox [#429]
- Hide "x" from screen readers when accompanied by a textual label, like "delete" [#425]
- Add title/aria-label to close modal button [#425]
- Add higher contrast hover/focus indication for "Add Content Here" button [#426]
- Add title/aria-label to move layout up/down buttons [#424]
- Add title/aria-label to "Add Content Here" button [#420]
- Change button hover/focus styles to ensure enough contrast [#427]
- Button hover/focus styles for destructive actions are now in red
- Clean up formatting in tinyrte link modal
- Clean up styling in add content/layout modal
- Video search results can now be navigated with the keyboard [#390]
Bug fixes:
- Fix possible broken canvas caused by textarea field
- Fix positioning of loading mask on fields
- Prevent E_NOTICE for repeater subitems that have been removed [S10493]
- Fix comma-separated select/radio setting values preselecting the wrong options [S9748]
- Add missing contentblocks.file.upload_path setting [S10614]
- Fix parsing issue in cbGetFieldContent where nested items don't get processed first
- Fix paste cleanup in IE11
- Fix default media sources working in multi-context setups [#434]
Released on 2016-12-08
- Fix error where blank default settings would not display properly ("=Default")
Released on 2016-09-23
- Fix "Add content here" button being hidden within layouts in a repeater
Released on 2016-09-14
- Fix chunk inputs in the template builder
Released on 2016-09-04 (Pre-releases Channel)
- Prevent images/common objects from taking more than 100% width in a dynamic chunk preview [#412]
- Store nested field data in $linear variable so that cbHasField / cbGetFieldContent can access the data of nested fields
- Fix clearing Layout/Template filter resetting the grid to show fields [S9791]
- Add empty alt attribute to default image input, and htmlent filter to image with title input [#418]
Released on 2016-08-02 (Pre-releases Channel)
New Features:
- Full control over what users can do in the ContentBlocks component with a new Access Policy with 35 permissions [#389]
- Add property add_first_item to repeaters to control if an empty first item should be automatically added [#386]
- Property added to enable TinyRTE on textfield, textarea and quote input types [#347]
- Added ability to duplicate a field/layout setting
- Add new dropdown input type [#217]
Improvements:
- Select, radio and checkbox settings now support "value==Displayed Value" format on top of "Displayed Value=value"
- Detect when alerts have been dismissed in the browser to still allow removing fields/layouts
Fixes:
- Fix incorrect strpos check causing the parser to be called more often than necessary [#399]
- Fix "available templates" on layout fields not being respected when adding a layout between existing layouts [#398]
- Prevent js error when generating the canvas on an existing non-richtext resource
- Fix exposed radio/checkbox settings sharing the same name attribute [#406]
Deprecations:
- "Displayed Value=value" format for field and layout settings and new dropdown input will be removed in 2.0. Recommended to use the new "value==Displayed Value" instead.
Released on 2016-05-18
- Update ace to build 18.02.16 (src-min-noconflict) to resolve conflicts with the MODX Ace package in the component
Released on 2016-05-16
- Load translations from lexicon before rendering to make sure they're always applied [#394]
- Fix issue outputting empty list items [#333]
- Fix html in setting default values getting parsed in the grid [#325]
- Prevent moving list items into unrelated sortables [#334]
- Fix syntax highlighting on code input when the Ace package is installed and active
Released on 2016-04-25
- Fix video input breaking the MODX Media Manager and dropdown TVs, caused by Google JS API [#387]
- Fix issue selecting availability fields in certain languages due to max length option [#388]
Released on 2016-04-11
- Fix MySQL error caused by the templates "Target Field" dropdown [S8482]
- Fix viewing layouts and templates on layout fields when "allowed templates" or "allowed layouts" is set to -1. [S8356]
Released on 2016-04-05
- Only hide delete button on repeater fields [#380]
- Fix E_NOTICE caused by lexicon files
- Fix the template builder being broken since 1.4 [#385]
- Hide filter options on subfield grids [#383]
- Fix ID conflicts in the subfield grids when editing a repeater
Released on 2016-03-22
New Features:
- Categories! You can now organise your fields, layouts and templates into neat categories to keep 'm organised.
- Filters and search in the component for fields, layouts and templates
- New License System! We've enabled support for our new license system, which includes free development licenses
Improvements:
- All indexed varchar fields are now limited to 190 characters to account for indexes on MySQL Strict mode [#379]
Released on 2016-03-15
- Fix links on gallery input types [S8247]
- Fix setting option values using lexicons [#375]
- Fix edge case where integer setting values could break the canvas
- Fix subfield action buttons appearing where they shouldn't in repeaters
Released on 2016-03-07
- Make sure the key and width of repeater subfields are required [S8028]
- Fix fatal error in case a repeater subfield did not have a key [S8028]
- Add "fontawesome" icon (Thanks Sebastian!) [#370]
- Prevent importing subfields from wiping all fields [#369]
- Fix variable names in RenderContent event [#373]
Released on 2016-02-16
- Fix issue where TV tags would not get parsed properly (Update to Alpacka v0.2.1, #366)
- Fix issue emptying TinyRTE-enabled inputs always keeping the last character (#279, S7934)
- Correct some links that have changed to prevent redirects
Released on 2016-02-10
- Fix incorrect caching of resources in rebuild_content processor
Released on 2016-02-04
- Prevent fatal error when trying to edit a non-existent resource (Thanks Johan!)
- Fix error when running rebuild_content as a Scheduler task
Released on 2016-02-01
- Fix image with title bug causing the canvas to never show up
- Fix issue with multiple 100% cols not resizing properly
- Fix broken canvas if thumbnail_size property isn't set on a gallery
- Set a border-bottom on empty columns for more consistency in layouts
Released on 2016-01-28
- Add missing plugin event relation for FileSluggy compatibility
- Remove duplicate "Show Link Field" property on Gallery fields
- Prevent various E_NOTICE and E_WARN errors (Undefined indexes: link, process_tags, unchecked getimagesize() calls)
- Fix column heights not getting reset upon removing a repeater row (#360)
- Move "Add Layout" button to a full width bar (#359)
- Update to Alpacka 0.2.0 (fixes context-specific settings in manager-side js)
Released on 2016-01-19 (Pre-releases Channel)
- Fix broken thumbnail generation (introduced in rc5)
- Fix Repeaters not showing saved content (introduced in rc5)
- Add missing contentblocks.base_url_mode setting needed to control image url generation on multi context sites
- Fix templates always inserting at the bottom
- Update to Alpacka 0.1.2 (fixes [[+resource]] path variable)
Released on 2016-01-18 (Pre-releases Channel)
- Fix issue in multi-context sites where images may not show up [S7665]
- Fix unexpected results in the chunk input when empty values are not passed to the tag [S7659]
- Remove Add Layout button overlaying delete/field settings on layout fields [#356]
- Fix positioning of Add Layout button in layout fields
- Fix control over the sortorder of subfields in a repeater [S7719]
- Fix loading a RTE for the template builder in the component
- Fix issue accessing resizeimage processor on case-sensitive server environments
Released on 2016-01-13 (Pre-releases Channel)
- Improve compatibility with FileSluggy (and similar extras) that sanitize and rename files on upload
Released on 2016-01-05 (Pre-releases Channel)
- Add schema defaults for icons so strict mysql doesn't fail to create repeater subfields
- Fix incorrect display of availability and settings grids
- Add pointer cursor to the radio and checkbox labels
Released on 2016-01-03 (Pre-releases Channel)
- Prevent Repeater subfields from showing up in the Add Content modal [S7545]
Released on 2015-12-22 (Pre-releases Channel)
New features:
- New "Add Layout" button to insert layouts at any point in the canvas (#103)
- Allow more than one row of columns per layout (#310)
- Click a layout title in the Canvas to give it a different title on that specific row (#272)
- Add [[+width]] and [[+height]] placeholders to image and gallery inputs (#274)
- Repeater input now also has a "Add Item" button at the top for inserting new items before existing ones (#242)
- Add expandAllLayouts and collapseAllLayouts methods to the js class
- Parse Resource tags (e.g. [[*pagetitle]]) on save and rebuild (#252)
- Make all settings context-aware for context-specific overrides
- Upload path placeholders now include all resource fields, tvs (with tv. prefix), some settings and (ultimate) parent id and alias (#196, #247)
- Allow template properties to grow in height for all input types
- Add checkbox and radio setting types for fields and layouts
- Image fields can now automatically create thumbnails for improved back-end performance (#257)
- Image and gallery fields will now store the urls as relative urls when possible, increasing portability (#286)
- Add ContentBlocks_RebuildContent, AfterRebuildContent and RenderContent system events (#132, #243, #283)
- Add option to set a minimum number of repeater items (#308)
- Add single-field, single-layout, and single-template exporting (#255)
- Add .contentblocks-field-richtext class to richtext field wrapper template
Improvements:
- Better keyboard accessibility through additional focus styles
- Make sure the default value field for settings is a textarea instead of textfield (#256)
- Make the rebuild time guesstimate slightly more accurate
- Add ability to set the number of decimals on cbFileFormatSize [#320]
- Add ability to set an inner limit and/or offset for repeaters in cbGetFieldContent (#330, thanks Thomas Jakobi!)
- Filter out revisions from Extras.io Preview/Workflow extras in the link input [#317]
- Autogrow TinyRTE to make sure it shows all the content without scrollbars [#341]
- Make use of the modmore/Alpacka composer package for standard, shared functionality.
- Make sure all vtab panels can scroll if their content is too large to fit
Fixed:
- Fix loading of field properties within a repeater group [#315]
- Fix usage of [[+idx]] within cbGetFieldContent
- Fix table input going nuts with more than 10 rows (thanks Luk!) [#277]
- Fix table context menu hiding behind other elements [#339]
- Fix CSS conflict with SimpleCart causing scroll issues in vtabs
Released on 2015-07-23
- Hardened XHR security to prevent leaking session IDs cross-domain (#304)
- Fix hardcoded "Insert Content" and "Insert Layout" modal titles (#313)
- Fix jump in positioning of layout options by hidden up/down buttons for ordering layouts (#311)
- Fix issue where nested layout fields caused the regular parser being restored, which then parsed subsequent tags that should be left untouched during the save (#302)
- Center "Add Item" button on repeaters to be more consistent with other actions (#293)
Released on 2015-06-09
- Fix issue where removing layouts did not affect the layouts-per-page calculation
- Fix ultimate parent-based default template selection (#291)
- Fix TinyRTE missing styling and buttons bar on Windows/Firefox (#287)
- Add some missing indices to the database tables (#290)
- Make sure select option recognises an empty string as value (#288)
- Fix upload to media sources with a full url as baseUrl
- Set Ace minLines option to 1 for smaller code inputs
Released on 2015-05-15
- Make sure Ace extends infinitely for better scrolling
- Fix several database issues with strict SQL modes
- Fix issue where duplicating a field lost some of its values (availability, template) (#278)
- Make sure the sort order is set to a good number automatically when creating a new field/layout
- Fix issue where nested repeaters might not work (#281)
- Fix wrong template in the default Link field
- Improve error reporting when a template for the canvas can't be loaded
Released on 2015-03-30
- Fix issue processing table inputs with only one row (#268)
- Make sure lexicon topics are always loaded for custom input types
- Make sure the resource is set when rebuilding content
- Fix default upload directory values not inheriting from the contentblocks.image.upload_path system setting
- Fix source override not being applied in file input
- Prevent E_NOTICE error when parsing settings
Released on 2015-02-17
- Fix missing upload progress bar on file input
- Allow categories to be specified by name on chunk selector
- Allow using "/" in upload fields to place files at the root of a media source
- Add instructional placeholder to link fields
- Fix bug where nested repeaters created rows in their parent repeaters
- Hide "Add item" button on repeater when limit reached
- Allow code as a target field type for defaults
Released on 2015-01-29
- Fix missing "add content here" button between fields on nested layouts, if the nested layout is the last field in the row
- Fix undefined error when the max number of files in a file input has been reached
- Fix weird jump when editing a code input (#146)
- Enable soft wrapping on code input for better overall editing experience
Released on 2015-01-16
- On image-with-title input type, fix title field getting duplicated when adding an image
- Fix some E_NOTICE errors in processing
- Fix issue editing a field after duplicating it
- Fix issue uploading images/files to an Amazon S3 media source
- Add collapsibility to repeater fields and items
- Fix problem with template settings: make fields, layouts, and templates into copies before working with them instead of treating them as references
Released on 2014-11-26
- Fix icons on default fields added in rc2
- Fix display issue with multiple link settings (missing clearfix, some extra padding, cleaner typeahead results)
- Fix [[+link]] value being set to [[~]], instead of being empty when no link was added
- Fix issue saving field data edited inline in a repeater group
- Make windows that can potentially get really high open at the top of the screen
- Fix issue with links causing certain links to be wiped on page reload
- Fix issue uploading files/images in MODX 2.2.x
- Improve file input delete button styling (thanks Luk!)
- Improvement to icon handling for file input
Released on 2014-11-10 (Pre-releases Channel)
- Fix issue with default templates not working properly due to plugin event
- Improve styling of nested repeater fields to better distinguish each instance
- Fix issue with title field not getting a height with TinyRTE enabled
- Ensure tabbing the list input retains the proper focus when using TinyRTE
- Add some new input types to the default fields offered during setup
- Fix modal positioning in older webkit browsers (thanks Luk!)
- Add [[+parent_field_id]] placeholder within nested layout fields
Released on 2014-10-27 (Pre-releases Channel)
New Features:
- New default templates feature which allows fine-grained control over the default canvas on new resources
- New "file" input type for adding a list of files similar to the gallery input
- New "repeater" input type, which shows grouped fields which can be repeated together
- New "link" input, which includes typeahead search for resource links, plus URL and email address support
- New "link" setting type for adding field/layout settings that need to link somewhere
- New optional link field to gallery items
- New link button added to TinyRTE to use the new link input functionality
- New [[+unique_idx]] placeholder to layouts and fields with a really unique idx
- New cbGetFieldContent snippet, which allows accessing specific fields from the ContentBlocks canvas
- New settings to specify a custom icon url outside the ContentBlocks directory
- New cbBaseInput->getDependantInputs method so composite input types can declare dependent input types
Improvements:
- Styling and functionality updates for modal windows (esc now closes them!)
- Ensure that setting tags like [[++site_name]] aren't prematurely parsed by the ContentBlocks parser, enables better multi-context usage
- Make sure hitting ctrl/cmd+s in a TinyRTE-enabled field properly triggers save on the resource
- Include iframe transport library for better upload browser support
- Include CSS and JS source maps into the package to prevent 404s when opening the console
- Expose ContentBlocks->resource for use in input type processing
- If input types are missing, fail politely with an error message instead of a fatal js error
- Make sure contentblocks.debug setting also applies to what input type assets are loaded
- When moving layouts the canvas now nicely scrolls to the new layout position so you keep your position
- List items can now be drag/dropped for sorting
- Improve sorting experience by setting the proper height on the placeholder
Bug fixes:
- Fix TinyRTE so links are stored more reliably
- Fix issue where a lot of properties could push the save buttons off screen when editing a field
- Fix issue with the properties tab not being generated consistently
- Fix missing label on Layout fields
- Fix unsetting "Only allow as nested layout" checkbox on Layout > Availability
- Fix issue with nested layouts, repeaters, and content duplicating itself
Released on 2014-10-20
- Change error messages to use ExtJS-style alerts instead of browser-style
- Fix undefined default template on chunk input
- Make video modal more user friendly by always keeping the search in view, no double scrollbars
- Setting max number of images on a gallery field to 0 now means there is no limit
- Fix issue with settings on nested layout fields being copied to their children
Released on 2014-09-16
- Fix sporadic issue with inserting nested layouts on complex pages
- Fix default code input template; should not have had htmlent output modifier
- Fix issue with video previews not showing up on https
- Add [[+layout_idx]] placeholder to fields
- Fix placeholders for table input in pre-installed field set
- Fix annoying popup when inserting a template that contains nested layouts
- Fix issue where table input did not have width set properly when the canvas is first loaded
Released on 2014-09-16
- Fix sporadic issue with inserting nested layouts on complex pages
- Fix default code input template; should not have had htmlent output modifier
- Fix issue with video previews not showing up on https
- Add [[+layout_idx]] placeholder to fields
- Fix placeholders for table input in pre-installed field set
- Fix annoying popup when inserting a template that contains nested layouts
- Fix issue where table input did not have width set properly when the canvas is first loaded
Released on 2014-08-01
- Fix default layout fallback when the requested layout is not found
- Fix validation issues when creating a template because of missing icon by setting a default
- Fix issue instantiating Code inputs if the Ace package is installed, but not used
- Fix endless loop when a stored snippet or chunk is no longer available but selected anyway
- Fix opening MODX Browser for inserting images into galleries
- Resolve some further issues with rebuilding content in 2.3 and downloading console output
- Fix chunk input refusing to load in 2.3
- Fix issue where Firefox would endlessly regenerate TinyRTE instances
- Return a value in the plugin to make sure it doesn't log 1's in 2.3.0
- Fix issue with list inputs repeating values
- Resolve build issue affecting snippets, causing errors to be shown during upgrade
- Fix issue where exposed settings would override resource fields of the same name on save
- Fix issue where layout settings wouldn't be processed for tags, even if the box was checked
- Fix issue where multiple settings would cause the template builder to not show any of them
- Fix occasional issue where parser wasn't loaded in getObjectsForCanvas, so the template builder failed to load properly
- Add some new icons
Released on 2014-07-18
- Fix issue where the "Use ContentBlocks?" resource setting did not change to "No"
- Add ability to process template tags in settings optionally
- Fix issue with ContentBlocksExtraSelectors and 3PCs
- Fix rebuilding content in 2.3. Also requires MODX 2.3.1.
- Fix issue where the "Use ContentBlocks?" resource setting refreshed the page when creating new documents
- Further design tweaks for 2.3 and the layout input type
- Auto select snippet/chunk if there's only one result
- Update default accepted_resource_types value to include all 3rd party custom resources that are known to be supported
- Prevent generating transient layouts that causes issues with parsing
Released on 2014-07-07 (Pre-releases Channel)
- Fix issue editing fields and layouts in the component when the Ace package is installed
- Fix issue where installer did not create Templates table
Released on 2014-07-06 (Pre-releases Channel)
New Features
- Add ability to insert new content between existing blocks with new "+" buttons
- Add optional description field to Gallery input
- Add new Chunk Selector input type (allows the editor to choose from a list of chunks and adding properties)
- Add Yellow Text inspired tiny RTE for list, heading and image with title input types
- Improve compatibility with third party custom resource types by allowing a .contentblocks_replacement class to be defined as target, and setting a class on the wrapper with the class key for targeting styling tweaks and a .contentblocks_loaded class on the body for container styling tweaks.
- Add button to repeat a layout for quick duplication.
- Option to Expose field and layout settings so they appear right in the canvas instead of hidden behind a modal window
- Nested layouts with a new "Layout" input type
- Fields, layouts and settings are now translateable through Lexicons
- Templates, a combination of layouts and fields for quick insertion, are now available
Improvements:
- Add German (thanks Christian Bartels!), Swedish (thanks Joakim Nyman!) and Dutch (thanks Bert Oost!) translations
- Fix several instances of hardcoded text, now uses lexicon strings as they should have.
- Prevent page generation from marking the resource form as dirty
- Make sure invalid content warnings in the rebuild content process show as error
- Parser improvement (search & replace placeholders for speed and nested placeholders before using the parser)
- Add [[+value]] as alias for [[+tag]] placeholder for chunk & snippet templates.
- Add 2.3-specific styling to fit in with the new design
- Pass field settings through to the chunk or snippet call in chunk and snippet inputs
- Clear cache after rebuilding the content
- Add titles and descriptions to the lexicon for system settings
- Improved JavaScript performance (esp. on big pages) due to delegate event handling and deferred canvas generation
- Improved upload filename sanitisation with support for Transliteration, and a new mechanism to prevent overwriting existing files.
- Pass [[+layout_id]] and [[+layout_column]] through to all field templates
- Pass [[+chunk_name]] and [[+snippet_name]] through to template on chunk, chunk selector, and snippet inputs
- Add new getLexiconTopics() method to inputs to allow loading input-specific lexicon topics
- Make local grid windows open as modal to prevent closing parent window prematurely
- Add drag & drop sorting to grids in the component (fields, layouts, settings etc)
- Add new confirmBeforeDelete input JS method and built-in data checking to prevent unnecessary confirm prompts when deleting fields
- Add animation to moving layouts to clearly communicate what is happening
- Automatically refresh page after changing the use_contentblocks setting
Fixes:
- Fix issue with images in image input not showing up properly.
- Fix bug installing default bootstrap layout
- Fix "image with title" input inheritance from "image" input
- Fix incorrect default value on Code input encode entities property
- Fix default icon on textfield input
- Fix "layouts" field not having its value loaded when editing a field
- Fix boolean property handling with new ContentBlocks.toBoolean method
- Prevent JS error trying to add the "Use ContentBlocks" setting on custom resources
- Only allow "save and close" on existing fields/layouts to prevent duplicate additions on subsequent saves
- Fix using field settings in list input wrapper template
- Don't allow spaces in setting keys
- Disable upload-by-paste on image/gallery inputs
- Fix issue in certain environments where subsequent uploads fail due to keep-alive header
- Fix issue with CRCs where newly created resources would not properly register it using ContentBlocks
- Change default heading level from installed field set from h6 to h2
- Fix issue where removing the last layout did not unset the last content
- Make sure Media Source combo works across 2.2 and 2.3
- Fix the unicode cog not always showing up by replacing with an SVG and Font Awesome in 2.3
- Fix TinyMCE breaking when sorting images
Released on 2014-05-05
- Fix CB being disabled unintentionally when using Quick Create/Update Resource
- Add Rebuild Content button to CMP for rebuilding all resources on a site
- Fix E_NOTICE error stemming from the ContentBlocks.summarizeContent function
- Minor change to linear content summary to make it easier to use
- Fix video preview pane showing up when it shouldn't (taking up a bunch of space)
- Fix issue loading assets when compress_js is enabled
- Fix field setting placeholders not being set in templates for chunk, gallery, list, snippet and table inputs
- Fix issue with field settings not being loaded after a page refresh (x2)