How to add HTML next to the </body> tag in Joomla module?

I am brand new to using Joomla. I created a custom module, however I would like to add code next to the tag </body>(or next to the opening tag <body>) to ensure that it will not be nested in any tables that may be in the template.

I found details on how to do this in the content plugin, however I would like to just have a module.

Any ideas? Thank.

+3
source share
3 answers

If the whole module should go immediately before </body>, you will need to create a module position in your template. In the file, /templates/[name]/index.phpput this in the right place:

<jdoc:include type="modules" name="endofpage" />

, , "endofpage" ( , ).

, , , . ( Javascript ).

+1

, , DisgruntledGoat .

1) template.xml( startofpage endofpage) 2) index.php 3) , ,

</head>
<body>
<jdoc:include type="modules" name="startofpage" style="xhtml" />
...YOUR CONTENT IN HERE
<jdoc:include type="modules" name="endofpage" style="xhtml" />
</body>
</html>
+1

Material on the joomla website is placed within line items, so it depends on the position of your template.

So, if there is a free position (which appears after all other positions), the placement of your module there will be the last to the end of the body.

0
source

Source: https://habr.com/ru/post/1738047/


All Articles