Artikel does not show Widget

More
2 years 1 month ago #4065 by ofbjansen
ofbjansen created the topic: Artikel does not show Widget
Widget is not shown when created in an article. When I create a module it works fine.

I get an "unexpected end of script" error message.

Please advise where to look at.

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #4066 by ofbjansen
ofbjansen replied the topic: Artikel does not show Widget
Extra information: When I unlock in the frontent the images are shown.

Joomla version: 3.8.6
NextGenEditor version: 2.2.2

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #4067 by jmbouille
jmbouille replied the topic: Artikel does not show Widget
I guess it is an issue with javascript. Simple image widget does not uses much javascript, unless you use caption or hover images, or other effects. Other widgets like grid or slider use much more javascript.
- You can try a simple image without any other feature. Is it OK or not.
- maybe it comes from one of the extra features : image hover, display, ...
- have you checked the final url of the image, is it compleete? Is it absolute and correct or relative?
- is your website multilingual, for example www.yourdomain.de/de/index.php ?

Can you give some more informations :
- what widget is it : simple image or grid image or other?
Have you used the browser inspector? F12 inside the page, the "console" tab, and click on the red message to get more details.

The rendering of the widget is the same inside an article and a module. So maybe there is a difference in the parameters you used, or maybe the problem comes before for another reason : another widget, another script???
If it is possible, you can also send us the url of your website at This email address is being protected from spambots. You need JavaScript enabled to view it.
Hope that will help

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #4068 by ofbjansen
ofbjansen replied the topic: Artikel does not show Widget
It is funny, but no error messages. Just two warnings about unexpected closing tags from my own module.

You can check it out on this test article with the simple image. Funny part is that I see the part where the image should come build up, but no image information is shown at all, just the open and close DIV.

Feel free to navigate to rcdiok.nl/index.php/nieuws-diok/78-test-nextgen

If you need more access I can provide it to you.

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #4069 by jmbouille
jmbouille replied the topic: Artikel does not show Widget
I checked your url, and the sources in the project.
All div and img tags are corrects, the main <img tag exists, all seems correct, but the src="imageurl" attribute
is missing. Either it was empty and the browser inspector hides it, either it has been removed while rendering.

Can you confirm that you choosed an image in the widget configuration screen?
Can you please check this :
in the file yourwebsite/layouts/nge/parts/images/image.php.
Can you add this :
line 30 : echo "source=".$data->content->body->source;
line 339 : echo '<br/>--' . $data->image . '--';

when rendering the page, you should see this before the image:
source=image
--http://localhost/joomla386/images/sampledata/fruitshop/apple.jpg--

If source= or ---- is empty, we must check the image configuration. Send me an extra access, so I can see the configuration screen.
If source=image and you see the image url, that means some extra joomla plugin or javascript is removing the image src attribute.

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #4070 by ofbjansen
ofbjansen replied the topic: Artikel does not show Widget
Did what you asked and the image information is set.

How can I determine what javascript or plugin is removing the src attribute?

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #4071 by ofbjansen
ofbjansen replied the topic: Artikel does not show Widget
Ok.......found the little plugin that was causing this.....remmebered something with a plugin that also does something with images.

Content - Auto Read More was doing this.

Think I have the startpoint on progressing on this. Thanks for your assistance.

Suport 5 stars :)

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum