Closed juergmessmer closed 9 years ago
Try testing what happens when you use this in a regular template instead of inside a config file. =
No problem!
Then it might also be a spyc parsing error. Can you try outputting the whole template from the backtrace?
I logged $this->aSettings['newsletter']['text_module']['insertable_parts'] in Settings::__construct and it looks ok?!
There seems to be a space or something between the semicolon and the word template
That was just testing, with space, with semicolon at the end, etc, but it made no difference.
Where/when are the settings parsed?
This is not a bug.
There should not be a template identifier in the settings, only a location.
Ah, ok. Thanks! icon: 'admin/add_newsletter_part.png' Yes that works. I was mislead because it was mentioned everywhere, in plugin config comments etc.
Error in ResourceIncluder->findResourceTypeForLocation(): no resource type found for add_newsletter_part.png;template=location_only}}
Logging extension and location in ResourceIncluder::findResourceTypeForLocation() vor der exception results in: extension => 'png;template=location_only}}', location => 'add_newsletter_part.png;template=location_only}}'
Path of include: site/web/images/admin/add_newsletter_part.png
File where included: site/config/config.yml newsletter: text_module: insertable_parts: [{icon: "{{writeDirectInclude=admin/add_newsletter_part.png;template=location_only}}"