By John on Wednesday, 24 January 2018
Posted in Technical Issues
Replies 5
Likes 0
Views 547
Votes 0
Hi there, I am working with the magazine layout to customise it to try and make it more like the Origami style. I am adding in post hits using the code:
<div class="col-cell eb-post-hits">
<i class="fa fa-eye"></i> <?php echo JText::sprintf('COM_EASYBLOG_POST_HITS', $post->hits);?>
</div>
I have copied this from the main template file. It works fine for the grid elements in the Magazine layout but for the main "showcase" header article it doesn't find the post hits, is this a different reference?
Hi there,

I have done some fix on your codes. It should shown correctly now.

Please give it a check and see how it goes.
·
Wednesday, 24 January 2018 17:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there, sorry it doesn't look like it has worked. Also I notice that my columns of articles are no longer spaning across the width but have a gap on the right hand side
·
Wednesday, 24 January 2018 17:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

It seems that my changes has been overwritten. You need to apply codes below for your leading articles. I have reapply them and is should shown correctly now.

[gist type="php"]
<div class="col-cell eb-post-hits"> <i class="fa fa-eye"></i> <?php echo JText::sprintf('COM_EASYBLOG_POST_HITS', $leadingArticle->hits);?>
</div>
[/gist]
·
Wednesday, 24 January 2018 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
thanks! do you know what would be causing the 2 columns to not span the space 50/50?
·
Wednesday, 24 January 2018 17:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

It is because on previous ticket, we have set them to 49%. I have set it to 50% and it should works fine now.

Please give it a check and see how it goes.
·
Wednesday, 24 January 2018 18:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post