Zen mode 06:00:21

It is currently our zen mode where we get some rest so that we can come back to work feeling refreshed the next day and assist you with your issues. Some answers may already be available on our documentation.

Official support hours are from 8:30AM — 5:00PM Monday to Saturday (GMT +7)

JLex Review 6.5.1 is ready!

using shortcode in an override

Mark Schultz
How do I embed the shortcode {attachment:all} in an article override? I want to have the attachements appear in the same location automatically without having to add the short code manually.

I tried this but doesn't work? Do you know how to do it? thanks.

echo JHtml::_('content.prepare','{attachment:all}');

3 replies

Victor
Hello,
It cannot be done via "content.prepare". "JLex Attachment" is a content plugin, it will detect based on the content of the article, not the content of the page.
In your case, you should use Javascript to move the attachment element to the desired position.

Hope can help you!

Best regards,
Victor Nguyen.
Thanks for the reply.

Sorry, I don't follow the javascript suggestion. What is the "attachment element"?
@Victor is wrote at 2024-09-20 02:48:47
Hello, It cannot be done via "content.prepare". "JLex Attachment" is a content plugin, it will detect based on the content of the article, not the content of the page. In your case, you should use Javascript to move the attachment element to the desired position. Hope can help you! Best regards, Victor Nguyen.
Victor
Hello Mark,
It's an element that contains the attachment. Please see the image I attached.

Best regards,
Victor Nguyen.
@Mark Schultz is wrote at 2024-09-20 17:23:23
Thanks for the reply. Sorry, I don't follow the javascript suggestion. What is the "attachment element"?
Reply to

Product Changelogs

JLex Review 6.5.1
^ Bridging feature. See its documentation for details.
^ Option resize image if too large.
# Fixed route issue.
# Fixed known bugs.
JLex Comment 3.7.3
^ The option to accept the Terms & Conditions once
^ The option allows you to edit comments within X minutes.
^ Viewport - Optimize page loading speed.
^ "Roles" are now available to guests.
^ Added options to adjust image quality.
# Fixed the issue of not receiving notifications.
# Fixed the bugs reported on Pagespeed.
JLex GuestBook 2.1.2
# Fixed login with Facebook and retrieved a user's profile picture.
# Improve layout and assets.
# Fixed known bugs.
JLex Comment 3.6.7
^ Option to load script location (Head or Body Tag).
# Improve data structure.
# Fix known bugs.
JLex Review 6.4.7
# Fixed login with Facebook.
# Fixed the issue of being unable to retrieve a user's profile picture on Facebook.
# Fixed known bugs.
JLex Comment 3.6.1
^ Integrate the Finder (Smart search) plugin.
# Fixed login with Facebook.
# Fixed the issue of being unable to retrieve a user's profile picture on Facebook.
# Fixed a bug related to editing comments in the front-end.
# Fixed bug "Jump to comment is broken".
# Improved the data structure.
JLex Block 6.1.7
# Fixed known bugs.
# Updated GEO servers.
✨ All extensions are now fully compatible with Joomla 5.4.x and 6.
Sign in to your account

Use your social accounts to sign in