By Johnny on Thursday, 15 December 2016
Posted in Technical Issues
Replies 6
Likes 0
Views 285
Votes 0
Hi,

On my website home page I am using the menu item type 'EasyBlog » (Posts) Frontpage » (Posts) Frontpage'

Is it possible to hide the toolbar ONLY on this page?

I am also using this menu item type on my 'Blog' page, however I DO want the toolbar on this page.

Thanks,
Johnny
Hello Johnny,

I am sorry but unfortunately it is not possible to configure this that but you can customize this by modifying the theme file /components/com_easyblog/themes/wireframe/toolbar/default.php
·
Thursday, 15 December 2016 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark, but if I edit that file won't that effect every page? I only want to hide the toolbar on the homepage.

Thanks
·
Thursday, 15 December 2016 18:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, you need to add your php logics,


if (latest view) { return; }


The code above is only an example, you need to fill in with the correct codes
·
Thursday, 15 December 2016 18:32
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm not really sure what you mean Mark, do I have to create a template override? I couldn't see any documentation regarding customisations such as this.

Thanks again
·
Thursday, 15 December 2016 18:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Unfortunately there is no way to create such a documentation because this isn't really about the software. You need to write your php logics to ensure that the template files don't get output on the page (In this case, the toolbar file)

Anyway this is how you should really do it,


<?php if (JRequest::getVar('view') == 'latest') { return; } ?>
·
Thursday, 15 December 2016 21:46
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post