Different Modules for different sections of the Same Component? - Joomla! Forum - community, help and support


i'm trying use mosets tree have 2 separate directories on site. 1 'products' , 1 'retail locations'. i've had no problem achieving mosets creating category 'products' , 'retail locations' , using mosets tree search module specify either 1 of these root directory searching. end user presented 2 separate searchable directories.

enough story... here's problem:

i have installed 2 instances of mosets tree search module, 1 search 'products' , 1 search 'retail locations', can display 1 mosets tree component menu link... there way display modules different areas within component?

the way have set right (which might counter-productive method, i'm not sure) there menu link mosets tree component, because don't want users see mosets tree index, link invisible. have 2 simple static html links point users 'products' or 'retail locations' categories within mosets tree. able apply 2 mosets tree search modules these 2 links separately, not main mosets tree component.

is there way? thanks!

i don't know whether work may worth shot.

add template index.php modules displayed.

code: select all

<?php
  global $itemid
 
    switch ( $itemid ) {
   
   case '1'://url itemid here
      mosloadmodules ( 'user1'); //can position like
      break;

   case '2'://url itemid here
   mosloadmodules ( 'user2');  //can position like
      break;
      }
  ?>


then links content items need this:

code: select all

 <a href="index.php?option=com_mtree&task=viewlink&itemid=2">your link text</a>

note '&itemid=2'  need match  itemid number in url of pages want modules show , in switch statement says case 'url itemid here':





Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts