Hello! We are online right now 09:33:00

The support team is online and will be able to answer your inquiries. Please stay calm, follow the rules and do not cross post. We'll attend to you as soon as we can.

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

Release JLex Comment v3.5.1 & JLex Transfer v1.4.1 🥳

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

Product Changelogs

JLex Attachments 1.5.2
# Compatible with J5.4.x and J6
# Support dark mode
JLex Lookup 1.4.7
# Compatibe with Joomla 5.4.x & 6
# PHP 8.3.x
JLex Transfer 1.4.1
# Compatible with J5.4.x & J6
# Fixed known issues
JLex Comment 3.5.1
Upgrade is required for Joomla 6. You also need to update its modules and plugins.
# Compatible with PHP8.3.x
# Improved dark mode in the backend.
JLex GuestBook 2.0.1
^ Added dark mode in the backend.
# Fixed the issue of not being able to save the settings.
# Compatible with J5 & 6.
Youtube Feed Pro 6.0.3
# Redesign themes
# Optimize source code (reduce 35%)
# Optimize processing time
# Dark Mode in the admin section
# Support for changing thumbnail size.
# Compatible with Joomla 5.4.x and 6.
JLex Transfer 1.3.7
^ Support dark mode in the backend.
# Fixed bug when importing user list.
See more
Sign in to your account

Use your social accounts to sign in