Skip to content

Commit

Permalink
Fix for override path precedence in fullcalendar viz
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Feb 23, 2018
1 parent 2daee4d commit c0f764e
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -75,10 +75,15 @@ public function display($tpl = 'default')
$tmplPath = JPATH_ROOT . '/plugins/fabrik_visualization/fullcalendar/views/fullcalendar/tmpl/' . $tpl;
$this->_setPath('template', $tmplPath);

// Store the file in the tmp folder so it can be attached
// @TODO create a viz model getLayout() that sets this path precedence
$layout = FabrikHelperHTML::getLayout(
'fabrik-visualization-fullcalendar-event-modal-popup',
array(JPATH_ROOT . '/plugins/fabrik_visualization/fullcalendar/layouts')
array(
JPATH_ROOT . '/plugins/fabrik_visualization/fullcalendar/layouts',
$tmplPath . '/layouts',
JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/layouts/com_fabrik',
JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/layouts/com_fabrik/visualization'
)
);
$displayData = new stdClass;
$displayData->id = 'fabrikEvent_modal';
Expand Down

0 comments on commit c0f764e

Please sign in to comment.