By André Eidskrem on Tuesday, 04 July 2017
Posted in General Issues
Likes 0
Views 379
Votes 0
How can we make modules on the EasyBlog front page not show after clicking "read more" or for example the pagination links at the bottom?
We have three sections of easyblog-modules positioned above the main content, and two nexto it on the front page, and now the user has to scroll past these if he goes to an article like https://testing.shapingtheodds.com/this-is-how-the-iphone-beat-all-the-odds or goes to https://testing.shapingtheodds.com/?start=5
I was able to fix this problem using the free "Advanced Module Manager"
Fix:
In the assignment section go to URL and mark "include"
Give an url like
yoursite.com/$
or
yoursite.com/news/$
(The dollar matches the end of a string in Regular Expressions)
Use Regular Expressions - YES

And that's it! The module(s) will now be excluded when there is something after the last /
·
Tuesday, 04 July 2017 21:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andre,

May I know how you access the link
https://testing.shapingtheodds.com/this-is-how-the-iphone-beat-all-the-odds

where as I access the 'readmore' the link was https://www.screencast.com/t/n8owYoClwiF
https://testing.shapingtheodds.com/news/this-is-how-the-iphone-beat-all-the-odds


For the next page
https://testing.shapingtheodds.com/?start=5

-> Unfortunately, it is not possible to hide modules as it using the same menu (EasyBlog frontpage) layout.
·
Tuesday, 04 July 2017 17:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andre,

May I know how you access the link
https://testing.shapingtheodds.com/this-is-how-the-iphone-beat-all-the-odds

where as I access the 'readmore' the link was https://www.screencast.com/t/n8owYoClwiF
https://testing.shapingtheodds.com/news/this-is-how-the-iphone-beat-all-the-odds


I had to set up both the home page and /news as front pages. We have about 2000 Joomla articles published already, which has now been converted to easyblog. As there are links to these articles on several different sites with the url format shapingtheodds.com/article-name, we need these links to still work. This did the trick, if I could make the modules go away.

For the next page
https://testing.shapingtheodds.com/?start=5

-> Unfortunately, it is not possible to hide modules as it using the same menu (EasyBlog frontpage) layout.

This means that a page design like our home page (which I think is a good way of breaking the site into different segments), can not be used, as the user will not see the the article/blog until he scrolls all the way down again. That's very disappointing

We will use /news as the main news page (frontpage layout), so articles/blogs will from now on be shared as shapingtheodds.com/news/article-name
Is there an other way we can also make the old links in format shapingtheodds.com/article-name work without showing modules on top? ("home" does not necessarily have to be an easyblog frontpage)
·
Tuesday, 04 July 2017 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
I had to set up both the home page and /news as front pages. We have about 2000 Joomla articles published already, which has now been converted to easyblog. As there are links to these articles on several different sites with the url format http://shapingtheodds.com/article-name, we need these links to still work. This did the trick, if I could make the modules go away.

-> I see, as this actually related with the:
For the next page
https://testing.shapingtheodds.com/?start=5

-> Unfortunately, it is not possible to hide modules as it using the same menu (EasyBlog frontpage) layout.

where the layout will refer the EasyBlog frontpage layout.
Perhaps, you can apply the code to the modules that you don't want it to be appear

<?php if (JRequest::getVar('option') === 'com_easyblog' && JRequest::getVar('view') == 'entry') { ?>
<?php return; ?>
<?php } ?>
·
Tuesday, 04 July 2017 19:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Andre, glad that your issue is resolved now
·
Tuesday, 04 July 2017 23:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post