By Appie on Friday, 17 March 2017
Posted in General Issues
Likes 0
Views 256
Votes 0
Hi all..

Probably an issue with my template, but I ask just in case.. I am overlooking a setting.

If you take a look at my (development) site the blog is in the middle of the home page..
If you now want to make a comment or read the whole blogpost, easyblog opens up the whole page again, and you have to scroll down for the blog, or to make your comment... again normal behaviour...

Would it be possible to open up the blog in a new page, or (better yet) open up scrolled down already to the bolg itself?
As I stated I think its because of my template and probably beyond the scoop of your support, and that I understand.

Maybe I need to just redesign the site layout..

Thanks anyway
Appie
Hello Appie,

The read more is a correct link but I suppose because your template pushes the content to the bottom, you can actually manually add #entry-<?php echo $post->id;?> after the post->getPermalink like this,


<?php echo $post->getPermalink();?>#entry-<?php echo $post->id;?>
·
Saturday, 18 March 2017 01:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Appie,

Looks like there is a bug with the elegant* theme where it isn't adding the correct anchors at the end of the link. Can you edit the file /components/com_easyblog/themes/elegantblue/blogs/latest/default.main.php and at line 198 locate the codes below:


<a href="<?php echo $post->getPermalink();?>"><?php echo $this->getNouns('COM_EASYBLOG_COMMENT_COUNT', $post->getTotalComments(), true); ?></a>


Replace it with,


<a href="<?php echo $post->getCommentsPermalink();?>"><?php echo $this->getNouns('COM_EASYBLOG_COMMENT_COUNT', $post->getTotalComments(), true); ?></a>
·
Friday, 17 March 2017 23:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Umm, could you remove the / after the " as it seems to be added by Joomla somehow.
·
Friday, 17 March 2017 23:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark thanks..

That did the trick indeed for the comments, but for the continue reading its still the same (maybe I wasn't clear though)

But is this code (line 185)

<a class="btn btn-default" href="<?php echo $post->getPermalink();?>"><?php echo JText::_('COM_EASYBLOG_CONTINUE_READING');?></a>

also not formatted correctly maybe?
I mean if I look at the difference from the code you gave me its missing the comments in the getpermalink code...
in this code there is also just getpermalink, bbut I am no php coder at all....
·
Saturday, 18 March 2017 00:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Appie,

The read more is a correct link but I suppose because your template pushes the content to the bottom, you can actually manually add #entry-<?php echo $post->id;?> after the post->getPermalink like this,


<?php echo $post->getPermalink();?>#entry-<?php echo $post->id;?>


Thanks very much that did the trick...
Great support as always!

Appie
·
Saturday, 18 March 2017 15:04
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Appie
·
Saturday, 18 March 2017 15:06
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post