开发者

Extend / override page element in elgg 1.6

I would like to know how do I extend owner_block page element in elgg framework. I want it to display differently depending on module using it. Differences are not only in different menu item names, but much greater. I created page_elements folder in my plugin views开发者_开发知识库 directory, but it changed owner_block on every page in every module, and I want it (for example) to display my way only in search module, but not in dashboard.

Can you please help me?


you can use the if condition

Like

if(get_context() == 'search') {
// then show the updates
}else{
// just blank
}

Thanks..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜