How to insert any module into Joomla content. How to insert any module into Joomla content How to insert a module into Joomla 3 material

Naturally, your template provides modular positions and you can place a module in them. But this does not always help; there are some cases when a module needs to be inserted into a certain article, in a certain place.

How to insert a module into a joomla 3 article

To insert a module into a joomla 3 article, you need to do the following.

1. Go to the "Module Manager".

2. Open the module that you want to insert into the article. For example, I chose the standard module “Login Form”, a form for logging into a site; for you it can be any other module.

3. On the right side of the open module window, in the position item, we see that the standard position 7 (Position-7) is selected; you need to delete it by clicking on the cross next to it.

4. Next, click on the “Enter or select a position” field with the left mouse button, in the window that opens, come up with and enter a new name for the modular position, you can use numbers and English letters. For example, I named the new position “new555”. Then press "Enter" on your keyboard.

6. As a result, the module that we are going to insert into the article should have a new position name that we came up with and entered.

7. Now open the article and in the place where you want to insert the module write

Note! When pasting this code into an article, don't forget Move the curly braces so there are no spaces!

My module displayed perfectly, I hope everything worked out for you too.

That's all for me, I wish you success.

Your theme provides positions through which you can make a module output. True, pre-installed modular positions may not be enough, because there are cases when a module needs to be displayed in a specific material and in a certain place.

How to insert a Joomla module into a material

To insert a module for articles in Joomla 3, follow the steps:

  1. Go to "Extension Manager", open the module that you want to insert into the article. For the sake of example, we took the standard “Login Form” module for logging into the site, but you can use any other one;
  2. If you look at the right side of the module, then in the “Position” item you will see its placement (for example, Position-7). You need to delete this position by clicking on the cross located to the right of the name;
  3. Now you need to click on the “Enter or select a position” field, open a new window using the left mouse button and enter the new name of the modular position (numbers and Latin letters are allowed);
  4. After this, you need to save the changes using the “Save and Close” button;
  5. As a result of this, the module that needs to be placed in the material will receive the new name of the position that you came up with;
  6. Now we open the material in the place where we wanted to insert the module and write: (loadposition name_of_your_position);
  7. After that, we simply save the changes in the material and check the operation of the module in the article.

After performing the above-described manipulations, the login/registration form was displayed in the article. Naturally, no one needs it in the material, but another module can be very useful.
https://www.youtube.com/watch?v=1bm4Cg89Dsw

Modules Anywhere: a solution for displaying modules anywhere on the Joomla site

Modules Anywhere is a plugin that allows you to display modules in templates, articles, inside components, plugins, etc. The work of this plugin is very similar to the work of the standard Load Module plugin, but the plugin in question has a large list of real advantages, and can even replace Load Module.

The plugin also comes with the Button Modules Anywhere plugin, which adds a button to the Joomla editor.

Thanks to this solution, you can insert the syntax for calling the module you need directly into the content of the materials. Especially useful if you often need to display modules in Joomla materials/articles.

Joomla plugin features:

  • modules can be displayed not only in materials, but also in plugins, template markup, components, etc.;
  • you can display not only the position of modules, but also an individual module, which can also be displayed by ID or name;
  • there is a button for inserting syntax into materials/articles;
  • you can set the module display style;
  • You can completely replace the standard Load Module.

Actually, in order to display one individual module, you need to know its name or ID. You need to write module in curly brackets () and then write the name or ID of the module. It should look something like this: (module ID_or_module_name).

The syntax for displaying a position is the same, only after the word module you must specify a specific position (for example, (module top)). It is also possible to override the default module style. The following styles exist: table, xhtml, none, rounded, horz. It will look like this: (module top|table).

The plugin has very few settings, but there are some important ones. So, in the “Module” tag you can override the module tag being used. You can write any other word here, but do not forget that you will have to use it when displaying modules (for materials and articles). Changing the word can be useful in the event that some of the extensions will throw errors when trying to use the module tag.

And in conclusion: the displayed module must be activated, but if you do not want it to be shown in the standard place of the topic, but only in the material, then you need to remove the position in the module settings. In some cases, the enabled “Ignore Caching” option also helps to avoid errors, which prevents some problems with the CSS and JavaScript of the module used.
https://www.youtube.com/watch?v=BEFKNiG9ygY

How to display a module in a Joomla module - 4.3 out of 5 based on 8 votes

Often, to create certain website functionality, you need to display a module in a Joomla module.

There are many options where this can be useful to you and many ways to display one module inside another Joomla module.

In this lesson we will look at many options for module output, I think one of them will definitely be useful to you.

Adding a module position to a module template.

A module inside another module can be displayed by adding the module position to the markup template of a particular module.

Suppose we need to display the position of modules in a menu module. To do this, we need to add special code to the template markup file of this module - default.php.

If your template has a menu module templated, then this file will be located in the following folder: site folder/templates/name of your template/html/mod_menu.

If this file is not present in the specified path, then you need to look for it in the following location: folder with the site/modules/mod_menu/tmpl.

Open this file using an editor (you can use ) and add the following code at the very bottom:

loadRenderer("modules"); $options = array("style" => "xhtml"); $position = "position"; echo $renderer->render($position, $options, null); ?>

Just instead of the word “position”, indicate any module position you need (top, user1, etc.).

Save the file. Now give the specific module the position you specified in the code and it will appear at the bottom of the menu module.

By analogy, you can add a module position to any module or third-party component.

So that in the future, when updating the system, the file we edited is not overwritten and all our changes are not lost, we need to template it. To do this, in the folder with your template, go to the html folder, create a mod_menu folder in it (if you are templating another module, the folder name should be the same as the folder name of this module) and copy the file you edited here.

In addition, you can display a separate module by its ID. You can find the module ID in the module manager in the last column of the table, opposite the module you need.

To display a module by ID, you can use the following code:

loadRenderer("module"); $options = array("style" => "raw"); $dbo = JFactory::getDBO(); $dbo->setQuery("SELECT * FROM #__modules WHERE id="specify ID" "); $module = $dbo->loadObject(); $module->params = "heading=2\nlimit=10"; echo $renderer->render($module, $options); ?>

Just remember to replace the words “specify ID” with the module ID.

Outputting a module using the Modules Anywhere plugin.

Using the Modules Anywhere plugin, you can also very easily display a module in a Joomla module. In addition, this plugin allows you to display the module anywhere.

It allows you to display both the position of a module and an individual module.

If you decide to use this plugin for this purpose, do everything by analogy with the above method of displaying a module in a module using code. Only in this case, instead of code, insert the module call syntax.

Outputting a module in a module of arbitrary HTML code using the standard Load Modules plugin.

In some cases, to create certain functionality, you can display any module in a custom HTML code module, which is included in the standard Joomla modules.

It is very simple and you can get by with standard Joomla tools without resorting to third-party plugins and editing system files. In this case, the module can be displayed using the Load Modules system plugin, which is designed to display modules inside Joomla articles.

To display the position of a module, just insert the following in the visual module editor of an arbitrary HTML code:

Instead of “specify position”, insert the required module position (position-1, user-1, etc.).

joomla insert a module into an article / material

Today we’ll talk about what has happened – how to insert a module into content or how to display a module inside a post or material. Of course, we will talk about joomle.

And first, I’ll explain why I need to display the module inside the material. Everything here is elementary - it’s increasing the functionality of your site on joomla, I’ll give an example. You have a beautiful gallery, it makes sense to show this gallery at the end of the post or even in the middle, where it will make more sense in context. But, as you know, each module in Jooml has a position (top, left, right, user1, user2), strictly fixed and specified in the template of your site in the file - (templates/template name/templateDetails.xml). And positions, in turn, do not affect the area of ​​the post/material. This means that it is impossible to display the joomla module inside a post in the usual way... Although...

Some people here will probably remember (loadposition module) This is a function of the standard joomla plugin included by default, it is called - "

Really! After all, using this function you can display a module inside a post. To do this, check if the plugin is enabled

Then inside the post where you need to display the joomla module write (loadposition module)

Where module is the name of the position (top, left, right, user1, user2).

First, you need to go to the settings of the module you need to output and select there (preferably a unique position not occupied by other modules).

It is very important to do this, otherwise inside the post there will be the output of another module occupying the same position as the module you need, but you definitely don’t need it.

If you did everything according to the instructions, then the output of the module inside the material should appear.

But, what should you do if OUTPUTING THE MODULE IN THE MATERIAL via (loadposition module) did not work, despite your correct actions?!

Calm! Now they will appear, no, not eggs, but our long-awaited gallery inside our article.

joomla - how to insert a module into a module:

To do this we will resort to a super plugin called Modules Anywhere. Which in translation means modules EVERYWHERE and, admittedly, this is not empty boasting, in fact, with the help of this plugin you can display a module everywhere - inside a post, even inside another module!

Then install it and check that it is enabled!

After that, we open the material for editing, into which we need to insert our long-awaited gallery and at the very bottom of editing the material, you will see a new button - Insert module.

A window will open with all the modules installed on your site. Select the desired module, save the post and look at the result.

Congratulations – you have inserted a module inside your Jooml article!

Gentlemen and, of course, ladies, I want to ask you for advice - which is the best projector to buy?!

Nowadays 3D projectors have become very fashionable, but how mature and high-quality is the technology? Because this resembles an empty marketing ploy, since people like 3D technology in cinema so much (there has been a real boom in it for a long time), then it is necessary to satisfy consumer demands for home moviegoers.

So I’m wondering: is it worth buying these newfangled 3D projectors, or buying yourself a regular high-quality projector?!