Answer the question
In order to leave comments, you need to log in
Joomla module, how to output data from settings file to template?
Question on Joomla, but it seems to me that any PHP specialist will help here.
When creating a template or module, the *.xml settings file is used with something like this.
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.0.0" method="install">
<name>mod_module</name>
<files>
<filename module="mod_module">mod_module.php</filename>
<folder>tmpl</folder>
<filename>index.html</filename>
<filename>mod_module.xml</filename>
<filename>helper.php</filename>
</files>
<config>
<fields name="params">
<fieldset name="basic">
<field name="modulename" type="text" label="Название" description="Название" />
</fieldset>
</fields>
</config>
</extension>
<?php
defined('_JEXEC') or die;
$modulename = $this->params->get('modulename');
?>
<?php echo $modulename ?>
you bring it to the right place on the site. <filename module="mod_module">mod_module.php</filename>
<folder>tmpl</folder>
<filename>index.html</filename>
<filename>mod_module.xml</filename>
<filename>helper.php</filename>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question