Hi,
I've been doing some modifications for client's project, integrating
custom design in particular. And noticed that actually Oxwall misses one
useful feature that helps to customize layouts design in any way user wants -
that's moving plugins' views into directory of currently used theme.
Here's how I've implemented that with a tiny edition in\ow_core\renderable.php file modifying setTemplate method:
public function setTemplate( $template )
{
static $theme_path;
if(!isset($theme_path)) $theme_path =
OW::getThemeManager()->getCurrentTheme()->getRootDir().'plugins'.DS;
if(strpos($template, OW_DIR_ROOT) === 0 && ($tpl =
substr($template, strlen(OW_DIR_ROOT))) && is_file($theme_path.$tpl))
$template = $theme_path.$tpl;
$this->template = $template;
}
So now I can move any existing core view template into 'plugins' folder of my oxwall theme. I think it would be great to have something like this out of the box, as it can be easily added even in minor release not breaking compatibility with any previous versions of cms.