Modify the HTML structure of a Joomla custom Module -


I need to change the HTML structure of a Joomla module. I want to create my own custom module where I Must show the title below. This is the current HTML which is the default format (round):

  & lt; Div class = "module_clipon" & gt; & Lt; Div & gt; & Lt; Div & gt; & Lt; Div & gt; & Lt; H3 & gt; Write Module & lt; / H3 & gt; & Lt; P & gt; This content is & lt; / P & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt;  

I need the HTML above to do this:

  & lt; Div class = "module_clipon" & gt; & Lt; P & gt; This content is & lt; / P & gt; & Lt; H3 & gt; This title is & lt; / H3 & gt; & Lt; / Div & gt;  

Actually bring the title down to the module content. What is the method of manipulating HTML of a module in Joomla? I believe it is possible using modChrome if any solution is easy to implement, please help. If you really want to handle it through custom modules chrome in the folder of your template, if any If you do not already exist, create a html folder within this folder, create the file modules.php . Then fill it with this code:

  & lt ;? Php defined ('_JEXEC') or die; Function modChrome_titleonbottom ($ modules, and $ params, and $ attribs) {echo '& lt; P & gt; . $ Module- & gt; Content '& lt; / P & gt; '; Echo '& lt; H3 & gt; ' . $ Module- & gt; Title '& lt; / H3 & gt; '; }  

Finally, go back to your template to apply this Chrome to your module state:

  & lt; Div class = "module_clipon" & gt; & Lt; Jdoc: included type = "module" name = "left" style = "titleonbottom" /> & Lt; / Div & gt;  

Use the module name that you need in the name parameter. Note that style parameter modChrome _ < / Code> function matches the name.

For more information:


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -