I find the code in the plugin: 'event_calendar':
$body = elgg_view_layout('two_column_left_sidebar', $area1,$area2);
It doesn't work,So i changed it like this:
$params = array(
'content' => $area1,
'sidebar' => $area2
);
$body = elgg_view_layout('one_sidebar', $params);
but there is nothing output to the page, how to modify the code correctly?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- yingfan@yingfan
yingfan - 0 likes
You must log in to post replies.Are you echoing the result?
echo $body;
or
echo elgg_view_page($title, $body);
thanks , just miss 'echo' before elgg_view_page