Danke für das Feedback.
Bei den ersten Tests mit Tag-Attributen konnte ich keine Probleme feststellen.
Bei den ersten Tests mit Tag-Attributen konnte ich keine Probleme feststellen.
[2022-01-1717:34:25] request.INFO: Matched route "tl_page.2919". {"route":"tl_page.2919","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","parameters":"","_route":"tl_page.2919"},"request_uri":"https://c4-2022.ikoro-burghausen.de/unternehmensbereich/das-unternehmen?act=edit&do=cc_i_exhibitors&id=11&item s=muster-ag&rt=NN7SZ_v3kxfEzkczaQAm8VxlEI9qhAEL5KJv2qmLQyU & table=cc_i_exhibitors","method":"POST"} []
[2022-01-1717:34:26] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMeth odError: "Attempted to call an undefined method named "getData" of class "Symfony\Component\HttpFoundation\Session\Session"." at ..../system/modules/pct_customelements_plugin_cc_frontedit/PCT/CustomElements/Plugins/FrontEdit/Frontend/ModuleList.php line 370 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\Undefine dMethodError(code: 0): Attempted to call an undefined method named "getData" of class "Symfony\\Component\\HttpFoundation\\Session\\Sessi on". at ..../system/modules/pct_customelements_plugin_cc_frontedit/PCT/CustomElements/Plugins/FrontEdit/Frontend/ModuleList.php:370)"} []
[2022-01-1717:34:25] request.INFO: Matched route "tl_page.2919". {"route":"tl_page.2919","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","parameters":"","_route":"tl_page.2919"},"request_uri":"https://c4-2022.ikoro-burghausen.de/unternehmensbereich/das-unternehmen?act=edit&do=cc_i_exhibitors&id=11&item s=muster-ag&rt=NN7SZ_v3kxfEzkczaQAm8VxlEI9qhAEL5KJv2qmLQyU & table=cc_i_exhibitors","method":"POST"} []
[2022-01-1717:34:26] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMeth odError: "Attempted to call an undefined method named "getData" of class "Symfony\Component\HttpFoundation\Session\Session"." at ..../system/modules/pct_customelements_plugin_cc_frontedit/PCT/CustomElements/Plugins/FrontEdit/Frontend/ModuleList.php line 370 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\Undefine dMethodError(code: 0): Attempted to call an undefined method named "getData" of class "Symfony\\Component\\HttpFoundation\\Session\\Sessi on". at ..../system/modules/pct_customelements_plugin_cc_frontedit/PCT/CustomElements/Plugins/FrontEdit/Frontend/ModuleList.php:370)"} []
$entry->field('myAttribute')->widget();
$entry->field('myFilesAttribute')->uploadWidget( $arrSettings );
[2022-01-1915:31:34] request.INFO: Matched route "tl_page.2922". {"route":"tl_page.2922","route_parameters":{"_toke n_check":true,"_controller":"Contao\\FrontendIndex ::renderPage","_scope":"frontend","_locale":"de"," pageModel":"[object] (Contao\\PageModel: {})","parameters":"","_route":"tl_page.2922"},"req uest_uri":"https://...de/unternehmensbereich/das-unternehmen/edit?act=edit&do=cc_i_exhibitors&id=11&items=muste r-ag&rt=CsbInuvQ6SDZTlln7w9IHDdYvUBbl9WmVEdB91FdZyk & table=cc_i_exhibitors","method":"GET"} [] [2022-01-1915:31:35] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMeth odError: "Attempted to call an undefined method named "widget" of class "PCT\CustomElements\Core\TemplateAttribute"." at /var/www/vhosts/.../templates/layout/customcatalog_default_edit--company-reader.html5 line 31 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\Undefine dMethodError(code: 0): Attempted to call an undefined method named \"widget\" of class \"PCT\\CustomElements\\Core\\TemplateAttribute\ ". at /var/www/vhosts/.../templates/layout/customcatalog_default_edit--company-reader.html5:31)"} []
$fields = $entry->get('fields');
echo $fields['myAttribute']->widget();
$arrSettingsImg = [
'useHomeDir' => true,
'autoUpdate' => true,
'doNotOverwrite' => false,
'extensions' => ['jpg','jpeg','png','gif', 'svg']
];
<div class="autogrid_row">
<div class="column col_6 col_6_t col_12_m <?php echo $entry->field('c_logo')->class ?>"><?php echo $entry->field('c_logo')->widget() ?></div>
<div class="column col_6 col_6_t col_12_m"><div class="info info-<?php echo $entry->field('c_logo')->class ?>"><i class="fa fa-info-circle" aria-hidden="true"></i>
Wählen Sie ein bereits hochgeladenes Logo aus Ihrem Benutzerverzeichnis aus.</div></div>
</div>
<div class="autogrid_row">
<div class="column col_6 col_6_t col_12_m <?php echo $entry->field('c_logo')->class ?>"><label>Neue Logodatei hochladen</label><?php echo $entry->field('c_logo')->uploadWidget( $arrSettingsImg ) ?></div>
<div class="column col_6 col_6_t col_12_m"><div class="info info-<?php echo $entry->field('c_logo')->class ?>"><i class="fa fa-info-circle" aria-hidden="true"></i>
{{insert_content::121107}}</div></div>
</div>
Kommentar