Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.


will.chen
Beginner Modder
ranks
useravatar
User Info

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.


Administrator has disabled public posting
metamodguy
useravatar
User Info

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

Administrator has disabled public posting
will.chen
Beginner Modder
ranks
useravatar
User Info

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


Administrator has disabled public posting
will.chen
Beginner Modder
ranks
useravatar
User Info

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


Administrator has disabled public posting
metamodguy
useravatar
User Info

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

Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 3100  Total Topics: 1195  Total Polls: 7  Total Posts: 4452  Total Posts Today: 2
User Info:   Newest User :  boca0   Members Online: 2   Guests Online: 75
Online 
boca0Jeff78
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