I have the problem that Fred inserts quotation marks at the beginning and end of the output. However, only if Fred is deactivated, the output is correct if it is activated. Inserting an image looks something like this:
What do you mean by “Fred is deactivated”?
Do you mean when you deinstall the Fred extra (deactivate the Fred plugin) or just when you request a page on the frontend without being logged in to the manager?
Can you share more information? Like for example the markup of the Fred element for this image?
What versions of MODX and Fred are you using?
OK, sorry - that’s right, some information is missing.
I mean when I activate the function in the frontend in Fred the output is correct, when I deactivate Fred it is no longer correct - the function I’m talking about is this one: (unfortunately in German)
Sure, here we go:
Option Group:
I then try to enter this image tag in the Fred: <img src="https://online.fliphtml5.com/codte/ofvn/files/shot.jpg" data-rel="fh5-light-box-demo" data-href="https://online.fliphtml5.com/codte/ofvn/" data-width="700" data-height="400" data-title="2024-02">
The result is:
Fred is activated: Everything super
Fred is deactivated: " is written around the img tag
MODX Revolution 2.8.7-pl
Fred 3.0.2-pl
Hope the situation is a little clearer now…
Greetings from Vienna
Why do you use an option of "type": "image", when you then enter a complete HTML <img> tag into the input field?
Isn’t this option type supposed to be to select an image from a media source?
My guess is, that you’d have to move the <img> tag to the template
<!-- Magazin -->
<div class="container">
<div class="row justify-content-md-center">
<img src="{{ Magazin }}" data-rel="fh5-light-box-demo" data-href="https://online.fliphtml5.com/codte/ofvn/" data-width="700" data-height="400" data-title="2024-02">
</div>
</div>
<!-- Magazin Ende -->
and only put the URL into the field (and maybe use additional options for the rest of the attributes). Or maybe change the option type.
OMG - you are absolutely right!
Fixed it with your advice - sorry for the stupid question I don’t know why my brain didn’t boot up from standby mode - maybe some overload…