Elxis CMS Forum

Extensions => Templates => Topic started by: stepsdesigns on February 02, 2011, 22:11:36

Title: need help plz
Post by: stepsdesigns on February 02, 2011, 22:11:36
iam using phlinex templeat and iam making a web site using IOSR
now i need to but module to be shown in the front page only
and to do that i go to the module i need to but it in the front page
i chose it to be in the hedare position and chose the Page/item
chose only (main menu-home and top menu home )
and this work for main pages but when i go to the reservations page the module is visbile and when i go to any city or hotel page the module is visble too

how i do make a module appear only in home page ???
Title: Re: need help plz
Post by: Ivan Trebješanin on February 02, 2011, 23:00:59
Administration->Modules->Site Modules->Your Module. Then Select HomePage in Pages/Items tab. That's all.
Title: Re: need help plz
Post by: stepsdesigns on February 02, 2011, 23:04:58
Administration->Modules->Site Modules->Your Module. Then Select HomePage in Pages/Items tab. That's all.
i did that but still visibal in other pages not the front page only i mean
Title: Re: need help plz
Post by: Ivan Trebješanin on February 02, 2011, 23:19:38
You can add to your template something like this:
Code: [Select]
<?php if($option ==&#39;com_frontpage&#39;){mosloadmodules(&#39;header&#39;, -2); } ?>
Title: Re: need help plz
Post by: stepsdesigns on February 03, 2011, 00:20:45
You can add to your template something like this:
Code: [Select]
<?php if($option ==&#39;com_frontpage&#39;){mosloadmodules(&#39;header&#39;, -2); } ?>
i but this insted of
{mosloadmodules('header', -2);
u mean ??
Title: Re: need help plz
Post by: Ivan Trebješanin on February 03, 2011, 00:29:36
I don't understand. Has this solved your problem?
Title: Re: need help plz
Post by: stepsdesigns on February 03, 2011, 00:34:52
I don't understand. Has this solved your problem?

iam not using com_frontpage it is not puplished coz i don't need it
so my home page is my first item in main menu and it is a component link to component front page

now i need to but module to be visible only in the front page i did that and chose the pages/items just my home page but the module still visible in IOSR pages

and this didn't solve the problem :S
Title: Re: need help plz
Post by: Ivan Trebješanin on February 03, 2011, 00:58:35
Can you give me the link to your site?