Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Certain article in the frontpage

Certain article in the frontpage

Hi,

I know that we can display certain modules depending on Joomla article ID. But what about if I want certain article (index.php?option=com_content&view=article&id=61) or at least html code to be display if pagetype == frontpage.

Is this possible? I have added new module position in my frontpage <BODY> and I have few sentences which I want to be shown only on frontpage. I can't include this HTML code to index.php because it will show text on all pages.

Thanks

zmogus
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

Re: Certain article in the frontpage

I have a workaround. I have created new joomla module with my HTML text file and then posted that module only on Homepage.

zmogus
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

Re: Certain article in the frontpage

Hi zmogus,

yes, that's the best way to do it.

The only problem that you may encounter is that if you are using the standard Joomla frontpage component, then when you view any of the articles by clicking on them, then the module will also appear on those article pages.

You can get around this with MetaMod, by following instructions on the Quick Start Guide, then using the following PHP recipe in MetaMod:

if ($core_genius->check("pagetype = frontpage")) return XX;
// replace XX with the module id of the module to include only
// on the frontpage.

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5910
Total Posts Today:
1
User Info:
 
Total Users:
10144
Newest User:
leonard5412396
Members Online:
2
Guests Online:
204


Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked