Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Hide Slideshow module on all pages if...
Hide Slideshow module on all pages if Frontpage is VM Frontpage SEF ON
Hide Slideshow module on all pages if Frontpage is VM Frontpage SEF ON
Hi,
A read a LOT and tried like all the suggestions, still i am not able to Hide Slideshow module on all pages except on the frontpage if Frontpage is set to VirtueMart Frontpage.
I am using Joomla 2.5.14 and Virtuemart 2.0.24 and MetaMOD 3.15
I have a Slideshow module (Slideshow CK)(ID:199) unpublished, position: none
- and created a metamod modul for it,
- menu assignement - home page menu only,
- Auto-enable included modules? - modules specified by ID
- Quick module position or id include: 199
- Tried various php to the php field
$vm = JomGenius("virtuemart");
if ( $vm->check( "pagetype = frontpage" ) ) return 199;
That one is working until i turn on "Search Engine Friendly URLs" and "Use URL rewriting" in global config.
When i turn on SEO settings module shows up on virtuemart pages.
URL of the website: http://www.castlewood.hu/
I would much appreciate some help here ..
Attila.
20-Dec-13 15:44:09
Re: Hide Slideshow module on all pages if Frontpage is VM Frontpage SEF ON
Hi Attila,
first of all, please remove everything from the "Quick module position or id include" box. That will cause the module to show up on every page that the MetaMod module is assigned to, and you don't want that.
Can I suggest as a test, that you use the following in the PHP box:
$vm = JomGenius("virtuemart");
echo "page type is: " . $vm->info("pagetype") . "<br />";
Then go to your site front end and visit some different pages. Hopefully, only the front page of your site will show the message, but probably some other VM pages will also show the message because of the way VM uses the front page Itemid for some of the other pages.
The interesting thing will be to find out what pagetype MetaMod thinks it's on, on the front page. Will it say "frontpage" or another page type? Whatever it reports will be the one that you need to put into the PHP code that you used originally (in your forum post).
Hope that helps - at least this will help you to see what's going on. Please write back with the results and we can work from there.
Best regards,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Hide Slideshow module on all pages if...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 1
- User Info:
- Total Users:
- 7671
- Newest User:
- kiresidencescondo2
- Members Online:
- 1
- Guests Online:
- 130
- Online:
- eugene4916
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked