Summary of changes in each release. For a full changelog see the commit history.
- Support for complex validation introduced in Umbraco 8.7
- Added a search bar to filter blocks in the picker UI
- Added convenience extensions methods to
HtmlHelper
to render a subset of ContentBlocks rather than everything.@Html.RenderContentBlock(IContentBlockViewModel)
to render one specific block@Html.RenderContentBlocks(IEnumerable<IContentBlockViewModel>)
to render some specific blocks- One use case is to render the header separately from the blocks in a different part of the page.
- Some styling improvements
-
Fixed Content Block
id
+ Nested Contentkey
properties not getting new values when a content node is copied (#45).-
These properties are supposed to be unique. NestedContent uses the
key
property as a cache key so having multiple Content Blocks on different pages share the samekey
can lead to issues. These properties will now be recursively updated to new unique keys when a node is copied. -
Note this was only an issue when copying an entire content node. Copying blocks using the ContentBlocks UI already updated these properties correctly.
-
Thanks to @glombek for reporting this issue and for providing code.
-
-
Fixed preset blocks not initializing any property value until expanded
- This meant if preset blocks were not opened manually by the user in Umbraco they would not appear in the model value of your content, as if the blocks are not on the page at all. In this case the blocks would be empty anyway since the user has not provided any content but this was not intended so has been fixed.
- Handles a couple of rare exceptions
- Fixed data disappearing in the back office in some cases since 8.7
- This occurred with some property editors, e.g. when using Nested Content inside a block.
- Removed new border around Nested Content items inside block in 8.7+
- Editor UI can now be localized (#22)
- Using Umbraco's built-in
<localize>
directive andlang/
XML files. - Looks at language of logged in Umbraco user.
- Thanks to @AndersBrohus for the PR and Danish translations
- Thanks to @stefankip for the Dutch translations
- Using Umbraco's built-in
- Fix crash in back-office when editor contains block definitions that do not exist in the repository.
- Fix disappearing content in the backoffice (#38)
- This issue occurred in multilingual setups and was introduced in 1.5.2.
- Content is still present in the database but did not show up in the backoffice editor.
- Fix an issue where RTEs inside blocks are "killed" when reordering ContentBlocks (#28)
- Fix macro issues when macro is inserted in an RTE in a ContentBlock (#31)
- Macro property value was not transformed correctly and therefore not rendered correctly in the frontend.
- Block picker: fixes mouse hover causing blocks to jump in some situations due to scrollbar appearing
- Copy/paste blocks: do not abort entirely when header cannot be pasted (#20)
- Added option to allow adding blocks even when header is not set yet (#24)
- Fixed crash in preview mode for HTML with multiple root nodes
- Some small layout fixes
- Fixes incorrect scale of preview window contents when loading the iframe the first time on new pages.
- Page content inside the iframe would not be scaled as usual and would display much bigger than it should. Refreshing the preview fixed the issue, but now it will be displayed properly immediately.
- NuGet package is split into two:
Perplex.ContentBlocks.Core
: Assembly onlyPerplex.ContentBlocks
: Full package, except it only containsApp_Plugins
itself and depends onPerplex.ContentBlocks.Core
for the assembly.
- Minor bugfix: handling of dataTypeId in JavaScript aligned with C#.
- JavaScript would skip a zero as it's falsy whereas in C# we check for
null
. Logic in JS has been adjusted to behave the same as in C# now.
- JavaScript would skip a zero as it's falsy whereas in C# we check for
- Layout descriptions are now shown in the layout picker
- Thanks to @jveer for the issue to get this started
- Close all other block settings when opening settings on another block
- Added
<content-blocks-icon>
component to help render icons - Fixes preview not working in Edge Legacy
- Added option "Hide property group container".
- This is the default behavior of our editor but could never be turned off. This hides the containing property group (= "tab" in v7) of this editor. However, when adding other property editors to the same property group this no longer looks good. Turning this option off will render our editor inside the group like other editors.
- Editor initialization is more smooth.
- We will not wait with all rendering anymore until data is loaded, some elements can always be rendered.
- Turning off "Hide property group container" will contribute a lot too as hiding the group during intialization is very noticeable on page load (it will appear then hide when this editor is loaded).
- Cleaned up NuGet dependencies. Only
UmbracoCms.Web
remains. - Restored transition effect on closing/opening settings button.
- Removes date from "Last update:", only showing time now.
- Show server validation messages properly if property is culture variant.
- Fixes "jumpy" layout sliders by not showing them until fully initialized.
- Initial public release