How to Fix Raw {loadmoduleid} Tags in Shack Article Layouts Pro

One of the customers of our Shack Article Layouts Pro module encountered the following issue. They added modules inside their Joomla articles using the {loadmoduleid} shortcode tag.

But when those articles were displayed on the Shack Article Layouts Pro page, the tags showed up as plain text. In this blog post, you will learn why this happened and how to fix it.


Why Did This Happen?

By default, Shack Article Layouts Pro shows your article text. It doesn’t automatically process those special Joomla tags.

So instead of seeing the module, you see the raw code like this:

module tags

Not very useful, right?


The Solution: Enable “Prepare Content”

The fix is simple. You need to instruct Shack Article Layouts Pro to prepare the content before displaying the articles.

This way, Joomla will process the {loadmodule}, {loadmoduleid}, and {loadposition} tags.

The real modules will show up instead of plain text.

Here’s how to do it:

  • In Joomla admin, go to Content → Site Modules.
  • Open your Shack Article Layouts Pro module.
  • Find the option called Prepare content.
  • Set it to Yes:

the yes option of the prepare content setting

  • Save your changes.

What Happens After?

Now, when you load your site, Shack Article Layouts Pro will prepare the articles. That means Joomla will run the content plugins and replace tags with real output.

So instead of the {loadmodule}, {loadmoduleid}, and {loadposition} tags, you’ll see your embedded module, like a Google map, form, slideshow, etc:

the module content displayed


A Quick Note on Speed

Running the “Prepare content” process takes a bit of extra work for Joomla.

If you display many articles at once, it could add a small delay.

If your articles don’t have modules or plugins, you can leave this setting off for faster loading.


Conclusion

If you ever see raw {loadmodule} tags in Shack Article Layouts Pro, don’t worry.

The solution is just one setting away.

Enable the Prepare content setting and your embedded modules will display perfectly.

This little option makes a big difference.


What's Next?

Save $1,000's when you sign up for Joomlashack's Everything Club.

You will get your hands on our extensive range of over 20 extensions, plus legendary support!

Click here to join the Everything Club