Joomla Problems

Discussion in 'Programming' started by commandos, Jun 26, 2008.

  1. #1
    Hello ,

    I have a few questions on Joomla

    - 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)


    - 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 .
     
    commandos, Jun 26, 2008 IP
  2. drax2006

    drax2006 Well-Known Member

    Messages:
    233
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    118
    #2
    drax2006, Jun 28, 2008 IP