Hi, thanks for your feedback. Sorry, it was very early this morning and I wasnt able to create a more detailed description. But first your questions:
What about inserting and deleting TVs, is that possible?
That is what this is for ;-) But instead of inserting single TVs you can insert whole chunks that have inner TVs (did you click on the logo?)
What if I want to hide a chunk/TV without deleting it, is that possible?
The chunk itself isnt deleted, only in this particular document. Let`s say we have a document where we put our MultiTV-Container (will be done by a snippet), it will look like this.
In your template something like this:
[[multiTV? &possibleChunks=`image,text_heading,myotherchunk,whateverchunk`]]
This will create an empty container on first call:
<div id="multiTV">
</div>
This is the area where you can drag and drop your chunks in. For example, if the text_heading chunk looks like this:
<div class="chunk">
<h2>[*headingtv*]</h2>
<p>[*textv*]<p>
</div>
it will look like this after dropped in the container:
<div class="chunk">
<h2>Heading</h2>
<p>this is the stand text which can be defined in the TV`s settings<p>
</div>
But this isnt all, the main concept is to have the possibility to insert the same chunk (and with that the same TVs) more than once and make them sortable and editable. So your document could look like this:
<div class="chunk">
<h2>Heading 1</h2>
<p>this is the stand text which can be defined in the TV`s settings<p>
</div>
<div class="chunk">
<h2>Heading 2</h2>
<p>this is the stand text which can be defined in the TV`s settings<p>
</div>
<div class="imagechunk">
<img src="test.gif" />
<div class="caption">This is the caption</div>
<div class="chunk">
<h2>Heading 3</h2>
<p>this is the stand text which can be defined in the TV`s settings<p>
</div>
You also can place more than one MultiTV-Container so you can even drag and drop items between the different containers.
We are just elaborating how to handle these TVs and how to store them.
The only concern I have is mootools choice. Unless things have changed with mootools (I switched to jQuery a while back and never looked back), there is the issue of namespaces and for something as important as frontend editing I think we have to take into account the possible js conflicts with scripts lots of websites are running. jQuery has noconflict() to avoid this issue, but maybe mootools has this too now.
Mootools has also something like that (at least I think so). I only use mootools and got used to it. So a JQuery thing would throw me back to start ;-) I think we will try to put this thing together with mootools. A changing of the framework should always be possible (if someone throws in who knows JQuery much better, why not?!)
I will put together a new demo without presentation mode so the thing becomes clearer.
edit: Okay, here the demo without presentation mode:
http://www.siebennull.com/xedit/demo.html