开发者

Extend / override page element in elgg 1.6

开发者 https://www.devze.com 2023-03-19 01:55 出处:网络
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, b

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

精彩评论

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

关注公众号