-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make the click to enlarge work #257
Comments
Hi @allanmontix, you'll have to implement a lightbox yourself in TYPO3. See https://stackoverflow.com/questions/55915638/how-to-do-an-integration-of-a-lightbox-in-typo3 Is your problem specific to images in the RTE? Does it work for you in plain fluid_styled_content elements? |
Hello @jonaseberle Yes the problem is specific for images in RTE. There's a lightbox plugin present for the enlarge to click option in textmedia elements and thats working. But those are working with different HTML: <a href="[link to bigger image]" class="jnlightbox" rel="lightbox[lb27554]" data-lightbox="lightbox-27554">
<img class="image-embed-item img-responsive" src="[link to small image]" width="200" height="200" loading="lazy" alt=""></a> The HTML generated in RTE by this plugin is only the img tag: <img data-alt-override="true" data-htmlarea-file-table="sys_file" data-htmlarea-file-uid="23787" data-htmlarea-zoom="true" data-title-override="true" src="[link to small image]" width="250" height="332"> The settings in the stackoverflow link you gave where already enabled |
I see. Sorry, I haven't checked myself before. I have the same output in v10 and v11. It seems you have to react to the |
I can confirm with TYPO3 V12.4.9 PHP8.2, that even if you have a lightbox installed and configured, TYPO3 dosen't render the image with an a-tag on the frontend. Also lazy loading is missing. The RTE source is: The rendered frontend HTML is: |
I have the same problems. Images from RTE get rendered in frontend like this:: The links are missing and don't get rendered. |
After updating to TYPO3 12.4.14 and updating the rte_ckeditor_image extension to version 12.0.1, all links in my images have disappeared. I also tried the latest version from the repository. What could be the problem with the disappeared links in the images? |
Is there a fix or workaround to get back the click enlarge function? Thanks in advance for some information on the state. |
If I insert the following Typoscript code into my setup file, the Imagelightbox and clickenlage works with the images in the RTE.
|
Thank you pixelbreit for your code snipped. This works like a charm. |
Question
Hello,
When checking the "Click to enlarge" box the img HTML is rendered with the following attributes:
Unfortunately the image won't open in an lightbox / popup.
Adding the styles.content.textmedia.linkWrap.lightboxEnabled = 1 to the root constants doesn't seem to help.
Is there anything else to add to make this work?
Environment
Documentation
Have you checked the readme/documentation?
The text was updated successfully, but these errors were encountered: