By Simon on Friday, 17 July 2015
Posted in General Issues
Replies 1
Likes 0
Views 764
Votes 0
Hello,

I would like to know how it could be possible to publish some modules between entries.
For example, I would like to publish an banner between my post#1 and my post#2.

Thanks for answer.
Hey Simon,

I am really sorry for the delay of this reply as it is a weekend for us here. Unfortunately right now there are no module positions between entries but you can quickly add one easily. For instance, if you edit the file /components/com_easyblog/themes/wireframe/blogs/latest/default.php, right after the following codes,


<?php foreach ($posts as $post) { ?>
<?php if (!EB::isSiteAdmin() && $this->config->get('main_password_protect') && !empty($post->blogpassword) && !$post->verifyPassword()) { ?>
<?php echo $this->output('site/blogs/latest/default.protected', array('post' => $post)); ?>
<?php } else { ?>
<?php echo $this->output('site/blogs/latest/default.main', array('post' => $post)); ?>
<?php } ?>
<?php } ?>


Add the following,


<?php echo EB::renderModule('easyblog-post-row'); ?>


Then, place the module under the position of easyblog-post-row
·
Saturday, 18 July 2015 14:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post