Keyword

Load module in text

  • JPACK
  • JPACK's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 months ago #151110 by JPACK
Load module in text was created by JPACK
Hi,

I know this should be simple, but I can´t get it to work and also can´t find an article that can help me.

I am trying to load a module in my K2 article text.
This is what I am writing {loadmodule "modulename"}

I can get it to work if I load the module using {loadposition "position"} but I rather use the module name for the overview in my system.

So, the question is - what I am doing wrong?
Have I completely missed something here?

Why is it working fine with loadposition, but not with loadmodule?

The site I am working on is not online, so I can´t give you a link.

Hope someone can help.

Cheers,

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #151117 by Krikor Boghossian
Replied by Krikor Boghossian on topic Load module in text
Hello,

Is {loadmodule} working throughout your site?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • JPACK
  • JPACK's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 months ago #151123 by JPACK
Replied by JPACK on topic Load module in text
I am not sure what you mean by "throughout your site".

But I have tried both {loadmodule} and {loadposition} in K2 and native Joomla articles. Only {loadposition} is working!
When I use the module in any position on my site, fx left, right or main-top position, then it is working well.

Is there a special plug-in I need to activate for this?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #151130 by Krikor Boghossian
Replied by Krikor Boghossian on topic Load module in text
Is loadmodule working in Joomla! articles or other extensions?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • JPACK
  • JPACK's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 months ago #151166 by JPACK
Replied by JPACK on topic Load module in text
{loadmodule} is not working in Joomla articles.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #151182 by Krikor Boghossian
Replied by Krikor Boghossian on topic Load module in text
If it is not working in Joomla!'s articles then this issue is not related to K2.

Take a look at this link www.ostraining.com/blog/joomla/loadposition-loadmodule/

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • JPACK
  • JPACK's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 months ago #151297 by JPACK
Replied by JPACK on topic Load module in text
Hi Krikor,

Thanks for your link.

I see now that I misunderstood how it works.

I thought I could take any module, put in the setting I want and name it fx. "Latest News" and then use {loadmodule Latest News}.

Anyway - I know how it works now, so everything ok.

Thanks for your help

Cheers,

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #151301 by Lefteris
Replied by Lefteris on topic Load module in text
@JPACK

You can do what you want to do. Just make sure that you are using the correct tag. Since this is a core plugin, you can always refer at the official Joomla! documentation at docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F .

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • JPACK
  • JPACK's Avatar Topic Author
  • Offline
  • Junior Member
More
8 years 2 months ago #151303 by JPACK
Replied by JPACK on topic Load module in text
hmmm.......then I have no idea what I am doing wrong.

Just as a test - I have tried to add the K2 Comment module to a Joomla article.
If I use {loadposition} then it works fine - but not with [loadmodule}

In our case we will create 3 different modules using the K2 Comment module - each module with different settings.
Let say we call them - K2 Comment1, K2 Comment2 and K2 Comment3.

Now - if I add {loadmodule K2 Comment1} to my article, nothing happens. Where the module should be, I only have blank page.

The module is working fine if I add it to a position in the template, fx "Right". Then it is shown fine!

So I thought the name I should put in, is the name I have called my module, the module title! [loadmodule "module title"}
But I guess that is where I am wrong.

Please Log in or Create an account to join the conversation.

More
8 years 2 months ago #151314 by Lefteris
Replied by Lefteris on topic Load module in text
A blank page indicates a PHP error. Set error reporting to Maximum to see the actual error message.

You can also load a module by type. For example to load the mod_login module you can use {loadmodule login}.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum