Having our weekend break 09:12:44

It is currently a weekend from where we are at. Rest assured that we will get back to your posts as soon as the week starts!

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

Release JLex Review v6.3.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

Flash Sale Banner 1.1.2
# Compatible with Joomla 5.4.x and 6.
JLex Cleaner 1.3.3
# Compatible with Joomla 5.4.x and 6.
JLex Review 6.3.1
# Compatible with Joomla 5.4.x and 6.
# Improve dark mode
# Fixes bugs for compatibility with PHP 8.3.x
JLex Helpful 2.0.1
# Compatible with J5.4.x and J6
# Improved dark mode
JLex Block 6.1.1
# Compatible with J5.4.x and J6
# Improved UI.
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
See more
✨ 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