symfony-cmf / block-bundle

Extends the SonataBlockBundle to integrate with PHPCR ODM
https://cmf.symfony.com
20 stars 51 forks source link

doctrine filter to remove embedded blocks when editing rendered content #144

Open dbu opened 11 years ago

dbu commented 11 years ago

f.e. in frontend editing, the cmf_block_embed filter might have rendered blocks that get stored as rendered blocks on a save. we should have the filter output some special token to detect that this was content it generated and create a doctrine listener that on saving removes the generated stuff again and restores the call. something like

....

(if the frontend editor goes destroying that something while editing, then screw him).

this concept could be applied to any filter thing somebody comes up with: if you provide a filter, you should provide a listener as well. each filter you activate is going to cost you. listening on save operations should be comparably cheap as its not happening that often. and anyway is not more expensive than rendering the page.

dbu commented 10 years ago

there is a discussion about making this a more general cmf feature: https://github.com/symfony-cmf/RoutingBundle/issues/178