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.

 

Show Only Right Column on Product Page and make other pgs width 100%

Show Only Right Column on Product Page and make other pgs width 100%

Metamod Show Only Right Column on Product Page and make other pgs width 100%

Hi. Please help if you know this. I am using Joomlart JA-zeolite and I created a metamod module that is set to the position "right" (the right column). All the modules that suppose to show up in the right colmun is set posistion to the metamod module. And I used the following php code to make them only show up on VM product page. All other pages such as article page should not have the right column, the main content area should be 100% of the page width.


if ($option == "com_virtuemart") {
$page = JRequest::getVar("page");
$product_id = JRequest::getVar("product_id");

/* PRODUCT DETAILS page */
if ($page == "shop.product_details") {
  /* modules that should appear for specific products */
  if ($product_id == "34") return "metamod-right";
}
}

This worked partially, the containing modules does not show in the right column of other pages except product page. However a blank right column is still there. Blank divs are all still there. <div id="ja-right"> and the main content area width is still 73%. <div "ja-mainbody" style="width:=73%"> and I still see the empty metamod module, <div id="Mod142" class="ja-module ja-box-br module">.

Is it possible to make the div "ja-mainbody" width:=100%? This seems to be needing php hack.

I am using Joomla 1.5.22, metamod 2.6

Thank you.

will.chen
Beginner Modder
ranks
useravatar
Offline
12 Posts
Administrator has disabled public posting

Re: Show Only Right Column on Product Page and make other pgs width 100%

Hi Will,

this is a FAQ:

http://www.metamodpro.com/metamod/faq/2 … etamod-was

The simple answer is that if you install MetaMod Pro, the blank right column will magically disappear smile

Cheers,
Stephen

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
3328 Posts
User info in posts
Administrator has disabled public posting

Re: Show Only Right Column on Product Page and make other pgs width 100%

Hi Stephen:

I bought the metamod pro plugin and it was able to completely take out the right blank column in FireFox. However it does not for IE 7 8 or 9.

I checked the source code. <div "ja-mainbody" style="width:=100%"> I dont know why it is not extending for IE.

Please help.

Thank you,

Will

will.chen
Beginner Modder
ranks
useravatar
Offline
12 Posts
Administrator has disabled public posting

Re: Show Only Right Column on Product Page and make other pgs width 100%

fixed, its a ie specific css fault in my template. metamod pro works fine. thanks

will.chen
Beginner Modder
ranks
useravatar
Offline
12 Posts
Administrator has disabled public posting

Re: Show Only Right Column on Product Page and make other pgs width 100%

Oh, that's a relief! Thanks for reporting back.

Best regards,
Stephen

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
3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4421
Newest User:
rajajudi14
Members Online:
0
Guests Online:
176

Online: 
There are no members online

Forum Legend:

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