[TYPO3-mvc] Is setting the <body> class within an extbase extension possible?
Henjo Hoeksma
me at henjohoeksma.nl
Tue Nov 1 11:54:23 CET 2011
Well.... long life TypoScript.
You can use conditions to achieve this and generate the body tag from
TypoScript.
This is not specifically an extbase thing. You could dive into the FLUID
TEMPLATE object to build your site fully using Fluid templates, and do some
logic there with viewhelpers to achieve what you want to.
Should be a fun exercise :-)
Kind regards,
Henjo
Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.
On Tue, Nov 1, 2011 at 11:24, Roland <most.wanted at gmx.at> wrote:
> is it possible to set/add a class="myclass" to <body> from within an
> extbase extension?
>
> e.g. depending on the controller and action (and other parameters) which
> are used on the current page?
>
> example:
>
> controller="Article"
> action="list"
>
> --> <body class="template_**articlelisting_category_sport"**>
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>
More information about the TYPO3-project-typo3v4mvc
mailing list