Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Metamod Pro with Aidanews2
Metamod Pro with Aidanews2
Metamod Pro with Aidanews2
Hi Stephen,
I've used a module called Aidanews2 which allows you to have a Latest News module chosen from an Article Category. It's great however I need a couple of things to be different which I'm hoping Metamod Pro can achieve
The Article "List" page displays the articles in a list which is pulled from a module position situated below the Component position. If the user clicks on an article, it takes them to the article page which uses the same template and menu item and also displays the module so I would like the module to be hidden on the article page.
You can see the site by going to http://dev.secretbali.life/ and logging in using "demo" and "demo" as the username and password. Once logged in, the page is: http://dev.secretbali.life/shhh/musical-maestros
Can you advise at all please mate?
Kind regards
Liam
Re: Metamod Pro with Aidanews2
Hi buddy,
fingers crossed I've achieved the result I wanted.
I set it to display a module which included some styles to hide (display:none) the class of the module that was included if it was on the article page which has worked.
If you can think of a better way that'd be cool, otherwise fingers crossed I've got the result I wanted.
Kind regards
Liam
Re: Metamod Pro with Aidanews2
Hi Liam,
If I understand you right, you need a module to show on the list page, but not on the article page, which are both on the same menu item, correct?
As well as doing a display:none, you could also make it not display the target module at all.
So in place of the module you put a MetaMod, and then assign the target module to pages: "none"
In the MetaMod, use this:
if ($core_genius->check("pagetype not = article")) return XXX;
// replace XXX with module id of the module you want
// to disappear on the article page.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Metamod Pro with Aidanews2
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8023
- Newest User:
- steves6794
- Members Online:
- 1
- Guests Online:
- 130
- Online:
- steves6794
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked