By Nick Mantas on Saturday, 08 February 2020
Posted in General Issues
Replies 16
Likes 0
Views 760
Votes 0
Hi, i use EasyBlog Menu Item Type * (Posts) Frontpage as default page in Joomla. But i have a problem when i make a module to show in frontpage (like showcase module) this module shows up also at articles page even when i select from module to show only to the selected menu item home page. Is anywhay to remove the module shows in articles page ?
With a little self searching i found the following code


With this instructions :

Open the file index.php located under the templates/[template-name] folder on your Joomla website.
In the desired location, add the following code:
<?php if (JRequest::getVar( 'view' ) != 'article') : ?>
<jdoc:include type="modules" name="[module-position-name]" />
<?php endif; ?>


Upload the index.php back to the templates/[template-name] folder.

Assign your modules to the [module-position-name].

Browse your website and you will notice that these modules will not appear on article pages, just category pages.


But this code i think that only works if i use only Joomla Articles.
Please any ideas ?!
Thanks in advanced !

My website is not yet online because we moving from wordpress to joomla so i use a sub domain v2.intownpost.com and we will swap to intownpost.com

*I need to keep same alias because we have 2K articles that we share with social networks and we have up to 200k shares So all this links must stay the same with the old one we use at wordpress.
** And we really like Pegination style autoload future , very good job !!! Either way with the grid you have not this problem because have already showcase. Please help me !
But for modules position i found another way with metamodpro module !
Meta mod gives you a lot of php recipes to load modules . So i make my own .

if (
$option == 'com_easyblog'
and $view == 'latest'
) return xxx;
else if (
$option == 'com_easyblog'
and $view == 'entry'
) return 'yyy';


xxx is my showcase module id
and yyy is a blank module i make because i dont want anything shows in this position when someone read an article.
·
Tuesday, 11 February 2020 20:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nick,

I am really sorry for the delay of this reply as it is a weekend for us here. You can use a code that resembles the following:


<?php if (JRequest::getVar('view') == 'latest' && JRequest::getVar('option') == 'com_easyblog') : ?>
<jdoc:include type="modules" name="[module-position-name]" />
<?php endif; ?>


This ensures that the module only renders on the front page of EasyBlog. As for the links, I don't quite get you here.
·
Saturday, 08 February 2020 11:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark thank you for your answer it is very helpfull i will open a new ticket now to Joomla Art who provides me the template i use Ja Teline V but is not work when i use the code at index.php ja teline ! Thank you for your fast response !
·
Saturday, 08 February 2020 19:23
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem at all Nick. Should you need any other assistance, please let us know
·
Saturday, 08 February 2020 19:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, is any way there . When auto load articles is on, to disable footer but to enabled again when you read articles ?
I use T3 framework .
·
Sunday, 09 February 2020 08:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nick,

I don't quite get you here. What do you mean?
·
Sunday, 09 February 2020 11:21
·
0 Likes
·
0 Votes
·
0 Comments
·
When i scroll down fast when autoload try to load more articles show me for a moment my footer , i need to show my footer to articles but not when i am int front page with autoload. Any ideas ?
·
Monday, 10 February 2020 08:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nick,

I am not too sure how to replicate this. Can you provide a link for me to take a look at this?
·
Monday, 10 February 2020 11:11
·
0 Likes
·
0 Votes
·
0 Comments
·
At the moment i can only provide you a print screen ! The footer shows only for one moment and then more articles load
·
Tuesday, 11 February 2020 20:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nick,

Sorry but I really do not understand your issue here. When the auto loading is in effect, you will never reach the footer unless you only have very little post. If you have a lot of posts, it will need to render all posts before the user can see your footer. This is the behavior of auto loading during scroll.
·
Tuesday, 11 February 2020 20:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, i have 2k articles and i set easyblog load 6 articles at the time . So i have sets of six articles, when you wait for 1sec. to load the next set of six articles you can see for a moment for that 1second the footer before render the next sets of six articles. And this is something that i want to avoid. My thought now is to make a sticky (fixed) footer for my website . I have already post for help to JA for t3 framework. For the first think with the modules the solution is https://stackideas.com/forums/joomla-modules-can-not-showing-in-articles#reply-492531
Thank you for your help !!!
You can close the ticket or you can left open the ticket so i can provide any solution for the thing with the footer i said.
·
Wednesday, 12 February 2020 08:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nick,

Ah I see, thanks for updating me on this and yes, I believe the only way to solve this is to set the footer as "fixed" if you want it to always show. I believe it's merely as simple as using the following css codes to set footer as fixed:


.site-footer {
position: fixed;
bottom: 0;
width: 100%;
}
·
Wednesday, 12 February 2020 11:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, i made the sticky footer . Have you any idea why i have this "bug" ?
My footer it won't be that big , i am working on it !
·
Thursday, 13 February 2020 10:54
·
0 Likes
·
0 Votes
·
0 Comments
·
I think it is the z-index, you need to specify a much larger z-index on the footer wrapper so that it will be above everything else. I believe this should really be a support question to Joomlart
·
Thursday, 13 February 2020 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes Mark but your support its extraordinary ! <3 Keep it up ! heheheh !!!!
·
Thursday, 13 February 2020 11:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your kind compliment Nick.
·
Thursday, 13 February 2020 19:08
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post