Question

I am using socialengine 4.2.I added some markup in Core\layouts\scripts default-simple.tpl and default.tpl but nothing seems to have an effect on front-end,even after flushing.I want to put a banner slider,for which I dont want to make a widget and put it on global header.I need to add some esternal scripts and css in the default layout,I guess, and then some markup in body.

1.I want to know,if need be, how to edit default layout. 2.Whats the difference between default-simple.tpl and default.tpl

Was it helpful?

Solution

1) Yes, you can edit layouts directly, and it works. Need more details how you tried it. And you can look into SE4 hooks (yes, more flexible and more complex way).

default.tpl:

echo $this->hooks('onRenderLayoutDefault', $this);

2) default-simple.tpl is auxiliary layout, it used for post-action messaging mostly, see Forum_TopicController::deleteAction() for example:

 return $this->_forward('success', 'utility', 'core', array(
'messages' => array(Zend_Registry::get('Zend_Translate')->_('Topic deleted.')),
'layout' => 'default-simple',
'parentRedirect' => $forum->getHref(),
));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top