madeyourday / contao-rocksolid-custom-elements

RockSolid Custom Elements Contao Extension
http://rocksolidthemes.com/de/contao/plugins/custom-content-elements
MIT License
48 stars 12 forks source link

preview or name in backend view? #149

Closed JensB74 closed 2 years ago

JensB74 commented 2 years ago

Hi and thanks for the great plugin!

Is there a way to display a preview of the contents of the element, or a given name, in the backend? If I have more than one of my own elements in an article, they all have the same name: box box box and I don't know what's inside until I click it ...

Or am I missing a setting in den _config.php that does exactly that?

Thanks in advance!

ausi commented 2 years ago

I the article view a preview of the content elements should be shown by default. Can you post your rsce_….html5 and rsce_…_config.php here?

JensB74 commented 2 years ago

The contents were copied from the documentation and from this url: https://github.com/fenepedia/contao-custom-elements

In backend it looks like this: https://ibb.co/RQW6XwB

Here are the files (code-block here doesn't work): rsce_programmbox_config.txt rsce_programmbox.txt

I have the newest Contao Version installed 4.13.2

Thanks for your help!

ausi commented 2 years ago

If you remove the following line from your rsce_programmbox_config.php, the preview should be shown as expected:

'beTemplate' => 'be_wildcard',
JensB74 commented 2 years ago

Perfect, thanks a lot!!