Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

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

Open
dbu opened this issue Sep 27, 2013 · 1 comment
Open

Comments

@dbu
Copy link
Member

dbu commented Sep 27, 2013

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
Copy link
Member Author

dbu commented Nov 8, 2013

there is a discussion about making this a more general cmf feature: symfony-cmf/routing-bundle#178

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant