ttc-freebies / plugin-responsive-images

Responsive images for Joomla! articles (com_content)
https://responsive-images.dgrammatiko.dev
GNU General Public License v2.0
87 stars 9 forks source link

Sppagebuilder #602

Closed Sir-Seyop closed 8 months ago

Sir-Seyop commented 9 months ago

Hello, Can You explain how can i implement for SPpagebuilder 5? TY

dgrammatiko commented 9 months ago

I have no idea what SPpagebuilder 5 is but there is documentation on the site

01Kuzma commented 7 months ago

@Sir-Seyop , have you managed how to achieve it? I've added: Component Name -> com_sppagebuilder Component Views - > article,content Component Database Columns - >text

dgrammatiko commented 7 months ago

I've added: Component Name -> com_sppagebuilder Component Views -> article,content Component Database Columns -> text

That should work

01Kuzma commented 7 months ago

@dgrammatiko , thank you, but, hm, something is wrong :( I did it like this: img but images are loaded without being processed. Tried to debug the plugin here plugins\content\responsive\ with simple exit statement, but it's also ignored...

dgrammatiko commented 7 months ago

External images will not be processed, the plugin works only on images stored on the server

01Kuzma commented 7 months ago

It's a local images stored on my localhost, just the laragon creates URL with .test

dgrammatiko commented 7 months ago

It's a local images stored on my localhost

Sorry didn't wrote that clearly: the plugin expects relative paths not absolute.

01Kuzma commented 7 months ago

The same with relative path :( image

dgrammatiko commented 7 months ago

What's the size of the image?

01Kuzma commented 7 months ago

The png is 200x200 image

Also, there is another jpg which loads with relative path from the template folder: /templates/shaper_helixultimate/images/page_img/contacts/test.jpg -> it's size is 610x687

dgrammatiko commented 7 months ago

The image is skipped because it's too small (200x200)...

dgrammatiko commented 7 months ago

Also, there is another jpg which loads with relative path from the template folder:

There's a problem with that path, it's only used on legacy templates. The plugin will never support the old templates (ie the ones that don't allow child templates).

You could probably edit the layout that echoes this image and follow the docs to allow responsive images to replace the tag: https://responsive-images.dgrammatiko.dev/documentation/layouts/

01Kuzma commented 7 months ago

hm, I have bigger:

dgrammatiko commented 7 months ago

How is that image inserted? Was it part of the editor (ie tinyMCE) or using a field (ie like the into text image on the Joomla article edit form)?

The plugin will ONLY replace images that belong to an editor column in the database. For the field inserted images you need to edit the layout override and follow the docs: https://responsive-images.dgrammatiko.dev/documentation/layouts/

01Kuzma commented 7 months ago

Builder uses it's own Add-Ons, or fields for input. How it's processed internally, honestly, I don't know. image

So, it seems, that it won't work with it

dgrammatiko commented 7 months ago

Probably they're using layouts for each field. Even if that's not the case they probably using layouts for their pages so should be possible

01Kuzma commented 7 months ago

Understood, thank you!