By Deng Changbin on Tuesday, 14 May 2019
Posted in Technical Issues
Replies 1
Likes 0
Views 441
Votes 0
Now I am writing some plugin.

I want to get context from onContentAfterDisplay and deal with the different views.

Such as Joomla article:
content detail: com_content.article
content category: com_content.category
So I can distinguish between the two situations.

But in EasyBlog:
blog detail: easyblog.blog
blog category: easyblog.blog
So I can't know where I am.

Can anyone help me?
Hi Deng,

EasyBlog only passes in 1 context. You can use the following to get EasyBlog's view.
[gist type="php"]
$app = JFactory::getApplication();
$view = $app->input->get('view', '', 'default');
[/gist]
·
Tuesday, 14 May 2019 18:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post