By HAZEL on Wednesday, 02 August 2017
Posted in General
Replies 7
Likes 0
Views 288
Votes 0
Hello,

For the Magazine model in EasyBlog, is it possible to redirect to the page corresponding to the category displayed from the button at the bottom of the list "View All Posts"

Regards

Frank
Hello Hazel,

I am sorry but unfortunately the view all link isn't configurable currently but you can of course create a template override for the magazine layout and modifying the link.

For instance, if you are using "layout_1", edit the file /components/com_easyblog/themes/wireframe/blogs/magazine/layout_1.php and replace the following codes,

[gist]
<a href="<?php echo $viewAll;?>" class="eb-more__btn"><?php echo JTexT::_('COM_EASYBLOG_VIEW_ALL_POSTS');?> <i class="fa fa-chevron-right"></i></a>
[/gist]

With,

[gist]
<a href="<?php echo EBR::_('index.php?option=com_easyblog&view=categories&layout=listings&id=9999');?>" class="eb-more__btn"><?php echo JTexT::_('COM_EASYBLOG_VIEW_ALL_POSTS');?> <i class="fa fa-chevron-right"></i></a>
[/gist]

Remember to replace the `9999` with the correct category id.
·
Wednesday, 02 August 2017 21:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for this solution.

There must be a small error in the code. The link created stops at categories/

In the meantime, I put the url link directly.
·
Wednesday, 02 August 2017 21:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, could you upload the file here so that I can review the codes?
·
Wednesday, 02 August 2017 21:47
·
0 Likes
·
0 Votes
·
0 Comments
·
The file with tle direct link

Normally, the id categorie is "904"
·
Wednesday, 02 August 2017 21:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Please try this file and let me know how this goes
·
Wednesday, 02 August 2017 22:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Soory the link on the button is incomplete https://www.top-destinations.fr/destinations/categories/-
·
Wednesday, 02 August 2017 22:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, can you please edit your post and provide me with the back end and ftp access as the access is not working. Also, what is the link to the magazine page.
·
Wednesday, 02 August 2017 22:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post