I replaced the Tabs module with Slideshow, because it seems more suitable https://prova.gmpe.it/onorato
but there are two problems:
- if I exclude the title from the display, the text is cut
- the text area at the bottom of the page is under the numbers
Thanks and kind regards
border=0 is correct with Solo 1.0.13
https://prova.gmpe.it/link/gruppi-mineralogici-paleontologici
There are borders between lines with Solo 1.0.18
https://www.gmpe.it/link/gruppi-mineralogici-paleontologici
I would not like to go back to the old version.
Thanks and kind regards
The poem you're using appears on a single page. This module is designed to work with multiple pieces of content, which can then be displayed using a View.
It's not a page, but a view: https://prova.gmpe.it/onorato
You could use the Paragraphs module to create tabs and show one section at a time.
The Paragraphs module is difficult to install without Composer.
As for borders, I apply custom classes to target specific tables. I don’t use inline styles, so unfortunately I can't offer help with that part.
I resume the discussion in the appropriate post: https://www.drupal.org/project/solo/issues/3513135 💬 Problem with classes in paragraphs and tables Active
Thanks and best regards
I updated the view with Show Collapse or Expand (Single)
: https://www.gmpe.it/grotte
Thanks and kind regards
I forgot to delete css #15.
Now see https://www.gmpe.it/prove:
- border=1 is correct
- border=0 and border-style:none need to be corrected because there is a bottom border on the cells, while the table should not have any border
- border-style:solid, inserted with ckeditor (should replace border=1), in theory it should be equal to border=1 but instead it is different
There is no rush, because I have already delivered the site and until they notice ...
thanks and best regards
Sorry to have been abrupt but:
- I am not the owner of the site, but for twenty years I have been committed to keeping it updated
- I presented and published the site in Drupal 11 a few days ago, believing it was finished and only later I realized that there were problems; if I had known, I would have delayed the delivery
- I am not paid to make the site, I do it willingly, but up to a certain point, because there is still a lot of work to do: there are still problems with the tables and I will still have to browse all the pages and work on the code of almost all the tables
- the contents with the tables come from Drupal 9 with Mayo theme, then I transferred them to Drupal 10 with Solo theme, modifying some tables; now I have prepared the site in drupal 11 and I find myself with tables that are all different: see the page https://www.gmpe.it/prove
- while with the default theme and ckeditor 4 the tables were all the same (with and without borders) regardless of the code, now with ckeditor 5 and the Solo theme they have become different; this is why I felt discouraged and therefore I got a little upset
- she has done so much for me and is always available to all users and for this she deserves that the theme is successful, but for this it must reach the greatest possible number of users
- the theme has a large number of options and allows you to make very beautiful sites, but for those who need a traditional site, mainly based on text, as in my case, they may find themselves in difficulty if they are not very experienced.
In summary:
- I do not want to change the css because it would further upset the tables and they would no longer be manageable.
- The latest theme update might be fine if you fix some issues, as seen on the page https://www.gmpe.it/prove
In particular:
- border=0 and borde-style:none → remove the bottom border of the cells
- border=1 → insert the bottom border of the table
- border-style:solid → make it equal to border=1
Thanks and best regards
I'm sorry, but the solution is not acceptable, it is not normal and it is not feasible. Drupal and ckeditor have always allowed tables with and without borders. It is unthinkable that, in a site that has been finished for a long time, you start browsing the 457 very long pages, with dozens of tables, with and without borders, and then search in the source code for the table without borders to manually insert the code, considering that they are both on the same page.
The problem had already occurred and had been solved in another way and I hope there is another solution. I don't think I'm the only one to use tables with and without borders.
Thanks and best regards
Sorry to be back here, but I noticed that tables with border=0 have a border.
Compare:
https://www.gmpe.it/link/gruppi-mineralogici-paleontologici
https://prova.gmpe.it/link/gruppi-mineralogici-paleontologici
Thanks and best regards
Now everything is perfect, everything works, the site is back to normal. I hope there are no other revolutions.
Thanks for everything and best regards
The css still doesn't work. The cache has been emptied dozens of times.
Thanks and best regards
We had already used border-spacing:0, but it didn't solve the problem.
For now I'll leave it like this.
Thanks and best regards
Thanks for what you are doing for me.
I like the default table, but with my header.
Unfortunately I still have two borders.
This is the css I inserted:
html #page-wrapper table {
margin: 0 auto;
}
html #page-wrapper table th {
background: #f5f0e7 !important;
border-bottom: 3px solid #b0e6d1 !important;
text-align: center;
}
#page-wrapper table tr {
border-bottom: none;
}
#page-wrapper table tr td,
#page-wrapper table tr th {
padding: 4px 6px;
}
#page-wrapper .view table tr td,
#page-wrapper .view table tr th {
text-align:center;
}
.bordertab {
border-bottom: 1px solid #BCC8AD !important;
}
Thanks and best regards
I can't set border=0 because all the tables in views no longer have a border and instead there must be one.
Compare:
https://www.gmpe.it/notiziario
https://prova.gmpe.it/notiziario
The other tables also have no border, while the border must be there:
https://www.gmpe.it/vulcani/attivita-vulcanica
Maybe I can't explain myself well, but what I need are tables like this one, which is perfect, and must be the same throughout the site:
https://prova.gmpe.it/notiziario
If I set border=1, nothing changes in the view tables and they remain perfect.
The other tables, however, have two overlapping borders: one black and one brown. Only the black border must be eliminated, but not the other.
The tables must return to how they were before. I don't understand what happened.
Thanks for your patience
I tried the css, but it doesn't work.
See Firefox → CTR + SHIFT + M → 1280 x 756
The APPROFONDIMENTI menu does not show the latest links.
A solution could be to have the possibility to lock the main menu, so it scrolls with the page.
Thanks and best regards
The css does not solve the problem: it overlaps the two borders, but two remain. Instead the black border should disappear and the other one should remain, as in this page: https://www.gmpe.it/notiziario
I did not change anything because the site was finished.
Thanks and best regards
1. I have to use css because the variable doesn't work if the text is inside the paragraph.
2. The tables must all have the same border, but I don't understand why the border is double. The color doesn't matter, but the border must not be double.
Thanks and best regards
Why were the changes not included in version 11.1.2? I had to re-apply the patch #13.
Ok. 2.0.x-dev fixes the problem.
Ok #13 solves in D11.1.1.
On my theme I applied this css, but I don't know if it works on yours too:
.field--type-text-long img:not(img.align-center),
.field--type-text-long video:not(video.align-center),
.field--type-text-long embed:not(embed.align-center),
.field--type-text-long object:not(object.align-center),
.field--type-text-with-summary img:not(img.align-center),
.field--type-text-with-summary video:not(video.align-center),
.field--type-text-with-summary embed:not(embed.align-center),
.field--type-text-with-summary object:not(object.align-center) {
display: inline-block;
}
I tried applying patch #16 on Drupal 11.1.1 but the problem is not solved.
I inserted the slideshow into the site, it came out well: https://prova.gmpe.it/euganei/fauna-euganea.
It is inconvenient to have to insert the number of pages in the view.
Best regards
Thanks for all the customizations.
Best regards
Is it possible to fix this for Drupal 11 too?
I can't publish my site with a warning every 10 seconds.
It came out great!
Thank you so much and best regards
Great! It works perfectly.
Thanks and best regards
Thanks! That was the problem. I forgot to check.
Sorry for the inconvenience.
Best regards
The sidebar menu must have a curse.
On drupal 10 it works as expected, while on drupal 11 there are no the arrows, yet the sites are identical.
Compare https://www.gmpe.it/rocce/rocce and https://prova.gmpe.it/rocce/rocce
What could it depend on?
Thanks and best regards
Unfortunately I can't use composer because it is not included in the hosting plan.
I have been using the module for years and I had never been asked for this library. I don't understand why it happens now.
Thanks and best regards
I found an even simpler solution: I changed the video resolution.
I would have found an alternative solution:
- I create an html page
- I call the page with glightbox-inline
It works with Edge and Chrome, but not with Firefox
- The page is the one in #1: https://prova.gmpe.it/chiavi-riconoscimento-minerali.
- Chrome 131.0.6778.205
- anonymous user
- No specific error in "recent log messages", but a warning for all pages visited: #3
- No problem with drupal 9 and 10
Thanks and kind regards
Unfortunately the problem is not solved. I noticed that with Chrome some views are not shown.
I installed version 11.1.0., but the problem persists.
giordy → created an issue.
I found a way to center the images, so the problem is circumvented by avoiding putting the p and div tags.
Kind regards
The author of the Solo theme, provided me with some css to add to my custom theme.
Now it works perfectly.
Kind regards
Thank you so much. It works perfectly.
I tried to insert a block, but the result does not change.
Maybe it is better that I remove the reset button.
Thanks and kind regards
In the page source there is class="align-center"
and "align-right"
: center does not work, right works.
I will try to contact the theme author, but I don't think this is the problem because it occurs with all the themes I use.
I usually align images in another way, but this problem is related to this other one:
https://www.drupal.org/project/drupal/issues/3489646
🐛
CKEditor 5 moves some classes in the a tag
Active
One or the other must be solved, unless a Drupal version of Colorbox-inline arrives.
Thanks and best regards
Sorry, but I don't understand English well and I have to use Google translate.
1. I answered: I use the Solo theme
https://www.drupal.org/project/solo →
2. I'm not very experienced and I don't know what to look at. the test page is this: https://prova.gmpe.it/prove
Thanks and best regards
I use the Solo theme, but I've always had this problem with other themes and other versions of Drupal.
https://prova.gmpe.it/prove
1. I Click on the IMCE button (fig. 1).
2. I Select the image (fig. 2).
3. I Select "align center" (fig. 3).
4. Check the source code (fig. 4).
5. I Save.
6. The image is aligned to the left (fig. 5).
I have a similar warning with drupal 11.0.9 for every page visited. It must have appeared after one of the latest core updates.
The site with drupal 10.3.10 has the same pages and settings, but there is no warning.
I don't know how to fix it.
Thank you
Warning: Undefined array key 1 in Drupal\Core\Asset\AssetResolver->getJsAssets() (line 243 of /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Asset/AssetResolver.php)
#0 /home/hmcpdbiy/prova.gmpe.it/core/includes/bootstrap.inc(108): _drupal_error_handler_real(2, 'Undefined array...', '/home/hmcpdbiy/...', 243)
#1 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Asset/AssetResolver.php(243): _drupal_error_handler(2, 'Undefined array...', '/home/hmcpdbiy/...', 243)
#2 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(286): Drupal\Core\Asset\AssetResolver->getJsAssets(Object(Drupal\Core\Asset\AttachedAssets), true, Object(Drupal\Core\Language\Language))
#3 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(123): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object(Drupal\Core\Asset\AttachedAssets), Array)
#4 /home/hmcpdbiy/prova.gmpe.it/core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php(97): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#5 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#6 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#7 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#8 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.response', Object(Symfony\Component\HttpKernel\Event\ResponseEvent))
#9 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(216): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response')
#10 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(204): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Render\HtmlResponse), Object(Symfony\Component\HttpFoundation\Request), 1)
#11 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#12 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#13 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /home/hmcpdbiy/prova.gmpe.it/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /home/hmcpdbiy/prova.gmpe.it/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /home/hmcpdbiy/prova.gmpe.it/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /home/hmcpdbiy/prova.gmpe.it/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#24 {main}
Unfortunately none of the three methods work:
- div moves the class as p
- css does not center the image
CKEditor 5 sucks!
I found the problem: it's the p tag
It works if I put:
<a class="glightbox" href="/sites/default/files/tettonica/tectonics_map.gif"><img src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>
If instead I put:
<p class="text-align-center">
<a class="glightbox" href="/sites/default/files/tettonica/tectonics_map.gif"><img src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>
</p>
CKEditor moves the class and shows the wrong image:
<p class="text-align-center">
<a href="/sites/default/files/tettonica/tectonics_map.gif"><img class="glightbox" src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>
</p>
Unfortunately without the p tag I don't know how to center the images.
Thanks and best regards
I found the problem: it's the p tag
It works if I put:
<a class="glightbox" href="/sites/default/files/tettonica/tectonics_map.gif"><img src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>
If instead I put:
<p class="text-align-center">
<a class="glightbox" href="/sites/default/files/tettonica/tectonics_map.gif"><img src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>
</p>
CKEditor moves the class and shows the wrong image:
<p class="text-align-center">
<a href="/sites/default/files/tettonica/tectonics_map.gif"><img class="glightbox" src="/sites/default/files/tettonica/vulcani.png" data-entity-uuid="" data-entity-type="file" alt="distribuzione di vulcani e terremoti" width="651" height="223"></a>
</p>
Unfortunately without the p tag I don't know how to center the images.
Thanks and best regards
Maybe I didn't understand the problem (I don't know English and I use Google Translate) or I explained myself badly.
My problem is that the image captions are aligned to the right and I wanted them in the center, but I don't know how to do it.
Thanks and best regards
The Editor Advanced Link and Editor Advanced Image modules are regularly installed.
That is not the problem.
The module works with text, but does not work with two images.
I summarize the situation.
1. I insert an image with IMCE
2. I connect the image with another image
3. In the link I put the glightbox class
4. I save and check if it works: html has not changed
5. In the same page I copy the code of another page that originally had colorbox
6. I replace colorbox with glightbox
7. I save and check if it works: html has changed, the class has been moved from the link to the image
See the page https://prova.gmpe.it/prove.
In the same page I have two images, one works and the other does not. Absurd!
Practically, it only works on new images and not on existing ones.
I do not know how to solve the problem because I have dozens of images to replace.
Thanks and best regards
I checked with all browsers and the problem disappeared.
The warning, however, also concerns other pages.
I need to look into it because I don't understand anything about these things.
Thanks for everything
Now everything is visible perfectly.
There are no errors in the server and neither does Drupal report errors.
Instead there is this warning:
Warning: Undefined array key 1 in Drupal\Core\Asset\AssetResolver->getCssAssets() (line 130 of /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Asset/AssetResolver.php)
#0 /home/hmcpdbiy/prova.gmpe.it/core/includes/bootstrap.inc(108): _drupal_error_handler_real(2, 'Undefined array...', '/home/hmcpdbiy/...', 130)
#1 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Asset/AssetResolver.php(130): _drupal_error_handler(2, 'Undefined array...', '/home/hmcpdbiy/...', 130)
#2 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(279): Drupal\Core\Asset\AssetResolver->getCssAssets(Object(Drupal\Core\Asset\AttachedAssets), false, Object(Drupal\Core\Language\Language))
#3 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php(123): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAssetLibraries(Object(Drupal\Core\Asset\AttachedAssets), Array)
#4 /home/hmcpdbiy/prova.gmpe.it/core/modules/big_pipe/src/Render/BigPipeResponseAttachmentsProcessor.php(97): Drupal\Core\Render\HtmlResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#5 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php(45): Drupal\big_pipe\Render\BigPipeResponseAttachmentsProcessor->processAttachments(Object(Drupal\Core\Render\HtmlResponse))
#6 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Drupal\Core\EventSubscriber\HtmlResponseSubscriber->onRespond(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#7 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#8 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners(Array, 'kernel.response', Object(Symfony\Component\HttpKernel\Event\ResponseEvent))
#9 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(216): Symfony\Component\EventDispatcher\EventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ResponseEvent), 'kernel.response')
#10 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(162): Symfony\Component\HttpKernel\HttpKernel->filterResponse(Object(Drupal\Core\Render\HtmlResponse), Object(Symfony\Component\HttpFoundation\Request), 1)
#11 /home/hmcpdbiy/prova.gmpe.it/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#12 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#13 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /home/hmcpdbiy/prova.gmpe.it/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /home/hmcpdbiy/prova.gmpe.it/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /home/hmcpdbiy/prova.gmpe.it/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /home/hmcpdbiy/prova.gmpe.it/core/lib/Drupal/Core/DrupalKernel.php(709): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /home/hmcpdbiy/prova.gmpe.it/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#24 {main}
Thank you very much
Attached are the images of the buttons and filters, unfortunately in Italian, of full_html.
Instead of modifying the existing pages, I repeat the procedure on a new page: https://prova.gmpe.it/prove.
1. I insert an image with IMCE
2. I connect the image with another image
3. In the link I put the glightbox class
4. I save and check if it works: html has not changed
5. In the same page I copy the code of another page that originally had colorbox
6. I replace colorbox with glightbox
7. I save and check if it works: html has changed, the class has been moved from the link to the image
In the same page I have two images, one works and the other does not. Absurd!
Practically, it only works on new images and not on existing ones.
Unfortunately I have to replace all the colorbox in the site with glightbox because Colorbox Inline module it looks like it won't be there for drupal 11.
Thanks for your patience
1. https://simplytest.me/ does not work: There was a build error 60%
2. CKEditor 5 demo: the problem does not reproduce.
3. I create the page https://prova.gmpe.it/tettonica/attivita-sismica-vulcanica
4. In the source code I insert:
<p class="text-align-center">
<a class="glightbox" href="/sites/default/files/tettonica/tectonics_map.gif"><img src="/sites/default/files/tettonica/vulcani.png" width="651" height="223"></a>
</p>
5. I save.
6. I check the source code:
<p class="text-align-center">
<a href="/sites/default/files/tectonica/tectonics_map.gif"><img class="glightbox" src="/sites/default/files/tectonica/vulcani.png" width="651" height="223"></a>
</p>
7. The problem occurs in all pages with the glightbox class
8. In text formats there are no filters for glightbox
Thanks for the reply. Unfortunately I am not familiar with scripts and do not know how to use them.
I think I found the problem anyway.
In the documentation:
<!-- Simple image -->
<a href="large.jpg" class="glightbox">
<img src="small.jpg" alt="image" />
</a>
On my site I put:
<a href="/sites/default/files/tettonica/tectonics_map.gif" class="glightbox"><img src="/sites/default/files/tettonica/vulcani.png" width="651" height="223"></a>
I save, check the code and find:
<a href="/sites/default/files/tettonica/tectonics_map.gif"><img class="glightbox" src="/sites/default/files/tettonica/vulcani.png" width="651" height="223"></a>
CKEditor moved the class to the second image.
How do I fix it?
P.S. Did you see my question in https://www.drupal.org/project/glightbox/issues/3441244#comment-15863159 🐛 Setting description position not working Active ?
Thanks and kind regards
giordy → created an issue. See original summary → .
Where is this option? I can't find it in the settings.
Thanks and best regards
Thanks. I was used to Colorbox and I still have to get familiar with this module.
Kind regards
Sorry to reopen the post, but I noticed that if I click on the image, all the others are also visible, but no gallery is set.
How can I solve it?
Thanks and kind regards
Thank you so much, I hope to use it soon on the new site.
I noticed that Advanced Insert View BUEditor Integration is not enabled, but I don't think I need it.
Thanks again and best regards
Thanks for the quick response and the good news.
Best regards
I'm sorry to bring the post back up, but I wanted to know if there are any news on how to insert classes to images with Drupal 11, or if there are alternative solutions.
For sites with a lot of text and many images it is very complicated to go and look for the correct line in the source code to add the class.
Thanks and best regards
Perfect, thank you. Now it works as I wanted.
Thanks again and best regards
The problem is that I want the thumbnail because the original image is too big.
That's what I can't do.
Thanks and best regards
Thank you for your patience.
Attached when requested.
Best regards
Thanks for the reply.
I can't use composer because my hosting plan doesn't support it. My association doesn't want to upgrade because our site is small.
I'll wait for the next version of drupal.
Thanks and best regards
Thanks for the quick reply.
I must be doing something wrong because the view doesn't work.
- I created the new style: original size, no effects.
- In the content type I put: Image + original size.
- In the view I put: GLightbox + thumbnail
The preview is correct, but the view is not: https://www.gmpe.it/attivita.
Thanks and best regards
I opened an issue on the CKeditor site, but I haven't had an answer yet: https://github.com/ckeditor/ckeditor5/issues/17295
The problem is really annoying, because I can't apply somes css (line height, for example).
I understand that something is needed to load the library, but this does not solve my problem.
- I have an image in a node
- I modified the gmpe.info.yml file as indicated in point #2
What is still missing for it to work?
Maybe the Colorbox Inline module is needed, which does not exist for drupal 11?
Thanks
1. I have been using this module since version 6 and I have never had any problems, nor have I ever inserted anything into the theme to make it work.
2. Even on the site https://www.gmpe.it/, with 10.3.6 I have not inserted anything into the theme (fig. A).
3. On the site https://nuovo.gmpe.it/ with 11.0.5 I cannot insert anything because the theme is in the core.
4. On the site https://prova.gmpe.it/ with 11.0.5 I inserted as in comment #2, but it does not work (fig. B). See https://prova.gmpe.it/prove
5. If I also had to modify the gmpe.info.yml file to make the GLightbox module work, it means that there is a real problem with Drupal 11.0.5
- I created the new site https://nuovo.gmpe.it/ (Drupal 11.0.5) with cpanel. I can't use composer because it's not included in my hosting plan. For dependencies I use the Ludwig module.
- I installed three modules: Admin Toolbar, Ludwig, Colorbox.
- I installed the libraries: colorbox, dompurify.
- I created the page https://nuovo.gmpe.it/node/2
Colorbox doesn't work.
The site https://www.gmpe.it/ with drupal 10.3.6 was created in the same way and has the same configuration. Colorbox works perfectly. See, for example: https://www.gmpe.it/micrometeoriti
I tried to put
libraries:
- colorbox/colorbox
- colorbox/dompurify
but it doesn't work.
Thanks for the reply.
1. I have:
libraries:
- colorbox
- dompurify
and not:
libraries:
- colorbox/colorbox
- colorbox/dompurify
as in the site with drupal 10.
2. I put in the subtheme file gmpe.info.yml:
libraries:
- colorbox
- dompurify
but it doesn't work.
3. I tried the GLightbox module, but it doesn't work either.
I can't understand and I don't know what else to do.
Thanks and regards