Component not working properly when using "intro text" to fetch article info
After some debugging i came to realize the problem happens only when i use "intro text" in the detail box parameters.
nothing works, from tag selection, load more buttons, or infinite scroll.
using Joomla 4.4.2 and Minitek Wall Pro 4.4.1
in the console i can see that every new image to load is getting a 404 error
//
Status
7 answers
There is no difference in the component from Joomla 3 to Joomla 4 (regarding the rendering of article content).
Unfortunately it is not possible to add the "/" automatically as it would be computationally very expensive to search the content of all articles for any images.
Hello
thank you for the feedback.
the JCE editor is already configured to use relative url's, the leading slash shows up in "simple" images in the website and in the images first loaded in the wall, but do not show in the "hidden" images waiting for the ajax call.
i noticed a difference, in minitek Wall for J3, the article is shown, but with no image, in minitek Wall for J4, the "load more" button simply gives error and doesn't load any additional items because of that missing "/".
any hack i could do in jquery (for example) or in minitek wall code files to add manually the "/" to the images?
thank you in advance
Hello,
I see, yes, relative URLs (without leading slash "/") encounter issues when used in certain contexts like AJAX requests (like in pagination) because they are resolved based on the current page's URL.
Root-relative URLs (with a leading slash "/") are resolved relative to the root directory of the website, regardless of the current page's URL, so the links will not break in AJAX requests.
Generally speaking, it's better to opt for root-relative URLs consistently within the editor. Certain editors might remove the leading slash upon article saving. In such cases, you can adjust the editor settings accordingly to prevent this action.
Well, after some debugging, i found the issue.
normal Joomla image upload (using JCE Editor) uses the url like this: src="/images/myimage.jpg" in the editor, but when rendered, it becomes src="/images/myimage.jpg"
the minitek wall needs a "/" inserted by hand in the html markup to render the relative path for the images not loaded. (hidden by the "load more" feature)
this seems to be an issue with the the rendering of the path and AJAX that i will need to explore further and see if there is anything to be done with JCE parameters.
instead, if there is any possible hack on the side of Minitek wall files let me know.
thank you
You must examine your HTML carefully and make sure everything is valid HTML and that images also exist.
I'm sorry but you understand, I can not do this for you.
All I can say is that I never had any issue loading images inside the introtext.
Hi there.
thank you for the reply.
the html has been part of the troubleshoot. i have been using the same html markup for another project in Joomla 3 and it works fine.
striping the html tags works, but only plain text shows, no inline <img> or other important tags.
from what i can see in the console, it has to do with the fetch of the image, that for some reason cannot be loaded
for now, i am using no pagination for the website workflow, but i would need some help to set this right please.
i will continue with the troubleshoot and will share any insight
thanks in advance
Hi there,
It could be that there is html inside the introtext that breaks the wall functionality. Try enabling the option Strip HTML tags.