Bug #25695 ยป widget-template.patch

Georg Ringer, 2011-04-01 11:19

View differences:

Classes/Core/Widget/AbstractWidgetController.php (working copy)
57 57
	}
58 58

  
59 59
	/**
60
	 * Set the template for widgets
61
	 *
60 62
	 * @param Tx_Extbase_MVC_View_ViewInterface $view
61 63
	 * @return void
62
	 * @todo implement logic for overriding widget template paths (tx_extension.view.widget.<WidgetViewHelperClassName>.templateRootPath...)
63 64
	 */
64 65
	protected function setViewConfiguration(Tx_Extbase_MVC_View_ViewInterface $view) {
66
		$extbaseFrameworkConfiguration = $this->configurationManager->getConfiguration(Tx_Extbase_Configuration_ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
67

  
68
		if (isset($extbaseFrameworkConfiguration['view']['widgetRootPath'])
69
			&& strlen($extbaseFrameworkConfiguration['view']['widgetRootPath']) > 0) {
70
			$view->setTemplateRootPath(t3lib_div::getFileAbsFileName($extbaseFrameworkConfiguration['view']['widgetRootPath']));
71
		}
72

  
65 73
		return;
66 74
	}
67 75
}
    (1-1/1)