By warut on Thursday, 20 October 2011
Posted in General Issues
Replies 2
Likes 0
Views 1.1K
Votes 0
<p>Hello,</p>
<p>I try to put easyblog module for latest entry page and blog entry page but i cant found the difference of itemid to chose in module configuration. for example, I want to show most popular module only in latest entry page but not show in blog entry layout.</p>
<p> </p>
<p>first i create Easyblog &gt;&gt; recent in main menu with itemid 54 then i create another hidden menu Easyblog &gt;&gt; Entry without specific blog id (I wish to put module in all entry layout) , when i click menu recent it show itemid 54 in URL but when i click specific blog to show blog entry layout it still have itemid 54 in URL.</p>
<p>What am i do wrong?</p>
The solution I found is to download this blank module here

Create a new module using the blank module type, apply it to your easyblog frontpage and use the following php in the php tab


// If we are not in the entry view
if(JFactory::getApplication()->input->get('view') != 'entry'):
// Get our module
$module = JModuleHelper::getModule('yourmoduletype','nameofyourmodule');
// Render our module
$moduleHtml = JModuleHelper::renderModule($module);
// Display out module
echo $moduleHtml;
endif;


Replace yourmoduletype with e.g. mod_custom would be custom.
Replace nameofyourmodule with the target rendered module's title.

Important: Make sure the module you want to render is assigned to the frontpage BUT have it's position unassigned.
·
Wednesday, 10 December 2014 20:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello George,

Thanks for sharing. Really appreciate that.
·
Wednesday, 10 December 2014 23:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post