JOomla

Discussion in 'HTML & Website Design' started by commandos, Jun 26, 2008.

  1. #1
    Hello ,

    I have a few questions on Joomla

    - I saw that there is only 1 index.php for the default template .

    
    
    $collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
    //script to determine which div setup for layout to use based on module configuration
    $user1 = 0;
    $user2 = 0;
    $colspan = 0;
    $right = 0;
    // banner combos
    
    //user1 combos
    if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
    	$user1 = 2;
    	$user2 = 2;
    	$colspan = 3;
    } elseif ( mosCountModules( 'user1' ) == 1 ) {
    	$user1 = 1;
    	$colspan = 1;
    } elseif ( mosCountModules( 'user2' ) == 1 ) {
    	$user2 = 1;
    	$colspan = 1;
    }
    PHP:
    where does Joomla decide how many modules are counted ? i mean why on the main page its 3 colspan and on the sub pages its 1 colspan .


    - Can we assign more than 1 style to a site , like having different css files for sub categories (if not , what do you suggest to do if we have a site with different page design in sub categories)
     
    commandos, Jun 26, 2008 IP
  2. turbosatan

    turbosatan Well-Known Member

    Messages:
    957
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    135
    #2
    go to www.joomla.org and read the manual

    you dont have tio edit any parts of the index to make different columns etc
     
    turbosatan, Jun 26, 2008 IP
  3. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #3
    i expect more helpful answers ;)

    you do have to edit the index , if you want something custom ...

    something like that :

    <?php if (mosCountModules('xxxx')){ ?>
     
    commandos, Jun 26, 2008 IP