Closed Munsio closed 9 years ago
You could add something like this at the top of your template:
<?php
if (TL_MODE === 'BE') {
echo $this->headline;
return;
}
?>
Sure but i think this solution is a little bit "mäh"
Why not using the be wildcard template as default and a template in the same folder suffixed like the config file but with _be for special be templates?
I added the option beTemplate
:
<?php
return array(
//...
'beTemplate' => 'my_be_template',
'fields' => array(
//...
),
);
pls add beTemplate
to the docs https://rocksolidthemes.com/de/contao/plugins/custom-content-elements/dokumentation
pls add
beTemplate
to the docs
Done.
Hi,
It would be great to define an special BE-Template or use an default one (only with field title etc.) and not to parse the whole element.
Parsing complex elements could lead into backend issues.