Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.


zmogus
Beginner Modder
ranks
useravatar
User Info

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


Administrator has disabled public posting
zmogus
Beginner Modder
ranks
useravatar
User Info

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.


Administrator has disabled public posting
metamodguy
useravatar
User Info

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

Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 3076  Total Topics: 1195  Total Polls: 7  Total Posts: 4448  Posts this week: 18
User Info:   Newest User :  tao   Members Online: 0   Guests Online: 174
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked