[Neos] No content wrapping
Marcin Ryzycki
marcin at ryzycki.com
Sat Apr 19 17:23:51 CEST 2014
On 2013-12-12 05:09:26 pm +0000, Christopher Hlubek said:
> If you want to get rid of the nested tag in the frontend, you'll have
> to extend the class
> \TYPO3\Neos\TypoScript\ContentCollectionImplementation and set the
> implementation class for the TypoScript object accordingly:
>
> prototype(TYPO3.Neos:ContentCollection). at class =
> '\My\Custom\ContentCollectionImplementation'
>
> Note: TypoScript object implementations are not yet a public API, so
> the next Neos version (e.g. 1.1) could change some internal behavior.
If sb is really determined to get rid of it, I've committed some
dirty-hack solution for that here:
https://github.com/million12/M12.Foundation/blob/master/Classes/M12/Foundation/TypoScript/ContentCollectionImplementation.php
Basically, it skips outputing that extra div.content-collection on the
'live' workspace - and it rendereds it as usual, when in the back-end.
BTW. Is there a way to access current FLOW_CONTEXT from inside that class?
M.
More information about the Neos
mailing list