Skip to content

Instantly share code, notes, and snippets.

@esedic
Created June 7, 2014 08:10
Show Gist options
  • Save esedic/ac658bac0670079da22b to your computer and use it in GitHub Desktop.
Save esedic/ac658bac0670079da22b to your computer and use it in GitHub Desktop.
Inject data into a Joomla module position
<?php
// Inject data from your component into the right module position
JFactory::getDocument()->setBuffer($data, 'modules', 'right');
// Note: Data will not be shown unless there are "real" modules present in position right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment