Zen mode 00:55:14

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)

Release JLex Review v6.6.2

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.6.2
^ Content suggestion feature: Adding pre-existing content helps users write reviews more quickly. (To find out more, go to: Configuration > Review Form > Default > Suggested phrases)
^ Display review content directly within the management list.
^ For video files: Watch directly instead of downloading.
# Fixed known bugs.
JLex Comment 3.8.2
^ Support for CAPTCHA challenges on subscriber forms.
# Fix email sending issues.
JLex Comment 3.7.7
# IMPORTANT: Fixed a security issue: Anyone could delete comments.
# This version includes fixes to ensure proper functionality on Joomla 3.
JLex Block 6.2.6
# Upgrade the framework to be compatible with Joomla 6.1.x
# End of support for Joomla 3.
JLex Comment 3.7.5
# Fixed an issue where the comments section would not display when "Script Position" was set to "Head Tag" or "Body Tag" on certain browsers.
Youtube Feed Pro 6.0.7
^ Added a background color option for the playlist.
# Fixed issues for compatibility with Joomla 6.1.4.
JLex Transfer 1.7.1
^ Filter articles by the selected time range.
^ Added a "resume migration" feature for cases of interruption.
^ Added advanced options for the category.
# Improve user interface
# Optimize the data importing.
# Fixed known issues
✨ 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