@aleksandru,
I have been following this thread with interest - there are several ways to solve the use-case under discussion but each of them would require a good deal of custom coding (as @trendoman mentioned). I would have loved to get involved but I don't think my current situation would allow me the required time.
Ideally, the creation and registration of a new template should be taken care of using PHP code (as an addon).
As a less ideal way (but easier to implement), you can do this explicitly -
a. Loop through the tiles of your mosaic to output a '<cms:template>' block containing the respective '<cms:editable>' definitions based on the selections.
b. Invoke a PHP function to create a physical template and put the above block in it.
c. Use an IFRAME to access the newly created PHP template - doing this will register the template and also execute the contained <cms:template>' block to create the editable regions.
If that seems doable, we can always put a new button on the edit screen of your form-builder to invoke the mentioned steps through PHP.
Does this reply help in any way?
I have been following this thread with interest - there are several ways to solve the use-case under discussion but each of them would require a good deal of custom coding (as @trendoman mentioned). I would have loved to get involved but I don't think my current situation would allow me the required time.
Ideally, the creation and registration of a new template should be taken care of using PHP code (as an addon).
As a less ideal way (but easier to implement), you can do this explicitly -
a. Loop through the tiles of your mosaic to output a '<cms:template>' block containing the respective '<cms:editable>' definitions based on the selections.
b. Invoke a PHP function to create a physical template and put the above block in it.
c. Use an IFRAME to access the newly created PHP template - doing this will register the template and also execute the contained <cms:template>' block to create the editable regions.
If that seems doable, we can always put a new button on the edit screen of your form-builder to invoke the mentioned steps through PHP.
Does this reply help in any way?