page editor: place holders for empty areas and adding components (MAGNOLIA-4340)

[MAGNOLIA-4342] page editor: concept for add component invitations Created: 18/Jan/12  Updated: 22/Mar/12  Resolved: 26/Jan/12

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Sub-task Priority: Neutral
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: Not Specified
Original Estimate: 0d

Issue Links:
relation
is related to MAGNOLIA-4341 page editor: concept for area place h... Closed
Template:

 Description   

Instead of an add button we inject an invitation to create a component.

The invitation can be positioned explicitel like this

<ul>
  [#list components as compontent]
  	[#render content=component]
  [/#list]  
  <li cms:add></li>
</ul>

auto injection
the following algorithm is used to place it:

  • if there is a single root div element, it gets injected inside it (at the bottom)
  • if there is no such single root element the invitation is placed above the area end marker


 Comments   
Comment by Philipp Bärfuss [ 26/Jan/12 ]

Finally decided to use the cms:add attribute

Generated at Mon Feb 12 03:54:52 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.