Developer forum

Forum » Feature requests » An extention til ContentAreas

An extention til ContentAreas

Martin Nielsen
Reply

Hi DW,

Here are 2 feature request that would make Dynamicweb even more awesome

Change how paragraphs are placed when changing layout
With the introduction of DW 8.4, a new "feature" has been introduced where, when you change the layout for a page, the paragraphs that no longer match a contentarea get moved to a box called "Areaname (ikke i template)". This means that the paragraphs get scrambled around and that is not what the user expects.

A better solution would be to place all paragraphs that have no valid contentarea relation, in the 'Default' contentarea, because thats the desired result in 99% of all our use cases anyway.

Variables on contentareas
Another thing we'd like is the ability to pass variables/settings from the contentareas to our paragraph templates. We need this feature to pass information about widths, heights and other settings to our paragraph templates base on which contentarea they are placed in:

It could look something like this:

In a 100% layout template

<div id="dwcontent-epic-stuff" class="dwcontent" title="Content 100%" settings="template:standard.html;default:true; variables:width|100%,imagesize|100%">
</div>

In a 50% layout template

<div id="dwcontent-epic-stuff" class="dwcontent" title="Content 100%" settings="template:standard.html;default:true; variables:width|50%,imagesize|100%">
</div>

The purpose of this feature is that we get the ability to make paragraph template respond to their container. The ContentAreaID is not enough, because if we change the ContentAreaID from layout to Layout, our paragraphs loose their relation to the container.

// Martin


Replies

 
Jesper Holm Damgaard
Reply

+ 1

 
Anders Engelbøl
Reply

+ 1

 
Lasse Nielsen
Reply

+1

 
Theis Poulsen
Reply

+1

 
Kevin Steffer
Reply

+1

 
Morten Bengtson
Reply

+1

 
Anders Nielsen
Reply

+1