Guest User

Untitled

a guest
Apr 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. // To include a modul position in your component view and to load modules there, you just have to add
  2.  
  3. echo JHtml::_('content.prepare', '{loadposition yourmodulposition}');
  4.  
  5. // to the view
  6.  
  7. /* The second string with the load position short tag can be replaced with a var which contains more html if you need that. You don't have to write that line for every new modul position*/
  8.  
  9. $outputModules = '<strong>Some Html</strong>'
  10. '{loadposition yourmodulposition1}'
  11. .'{loadposition yourmodulposition2}';
  12.  
  13.  
  14. echo JHtml::_('content.prepare', $outputModules);
Add Comment
Please, Sign In to add comment