Advertisement

Turn component into module

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
Ehrenmeyer
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Feb 11, 2024 6:15 pm

Turn component into module

Post by Ehrenmeyer » Sun Feb 11, 2024 6:24 pm

Hello there,
I have installed the Akeeba Engage component on my Joomla 4 website. The comments are now underneath the content of each article.
However, I need the component output to be at a different position. It would be ideal if there is a way to create a module that embeds this component, thus I can assign module positions to it.

Is there any way to do that? Apparently, the extension "components everywhere" made this possible, but it is not available for Joomla 4.

Thank you in advance!

Advertisement
User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31843
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Turn component into module

Post by Per Yngve Berg » Sun Feb 11, 2024 7:02 pm

https://extensions.joomla.org/extension/akeeba-engage/

Look closer. You will see there is a module available.

Ehrenmeyer
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Feb 11, 2024 6:15 pm

Re: Turn component into module

Post by Ehrenmeyer » Sun Feb 11, 2024 7:45 pm

Thank you, but the module is not the same as the component. The module shows the latest comments that were posted on every article on the entire website. The component shows you the comments for the respective article. The latter is what I need as a module.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31843
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Turn component into module

Post by Per Yngve Berg » Sun Feb 11, 2024 8:14 pm

It's actually the Plugin that shows the Comments under the Article.

User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10710
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Turn component into module

Post by AMurray » Sun Feb 11, 2024 9:33 pm

If the plugin for Akeeba Engage is inserted by short-code (i.e. the editor button beneath your article editor), then you could put it 'anywhere' including for instance, in a custom module, which you can assign to any page/menu item and place in the appropriate module position for your template.

You could also place the custom module into your article using {loadposition} or {loadmodule} functions that are built into Joomla. The third-party extension Modules Anywhere achieves the same thing here.
https://extensions.joomla.org/extension ... -anywhere/
Regards - A Murray
Global Support Moderator

Ehrenmeyer
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Feb 11, 2024 6:15 pm

Re: Turn component into module

Post by Ehrenmeyer » Sun Feb 11, 2024 10:52 pm

Yes thank you, that's a good idea. Do you know how I can find out what the short-code looks like?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 31843
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Turn component into module

Post by Per Yngve Berg » Mon Feb 12, 2024 8:43 am

It's not a Content Plugin. It's a Plugin that acts on the OnAfterArticleDisplay Event.

User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10710
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Turn component into module

Post by AMurray » Mon Feb 12, 2024 9:12 am

ahh, thanks for the correction, I keep forgetting the differences between plugins was merely thinking content plugin.
Regards - A Murray
Global Support Moderator

Advertisement

Locked

Return to “General Questions/New to Joomla! 4.x”