将单元内容列表 hack 成两列显示

来源:百度文库 编辑:神马文学网 时间:2024/04/28 04:42:51
修改文件: components/com_content/content.html.php
function showCategories 段,约 122行:

    替换为:

    下面行的echo "\n";
    $rowcounter = 0;

    if ( $catid != $row->id ) {
    替换为:
    // if ( $catid != $row->id ) {
    并在他下行增加:
    if (($rowcounter%2==0) AND ($rowcounter<>0))echo "\n\n";
    在下面的

  • 替换为:

  • 紧接的下面到结尾部分:
    }
    }
    ?>

    }
    替换为:
    // }
    $rowcounter++;
    }
    if ($rowcounter%2<>0) {
    for ($i = 1; $i <= (2-($rowcounter%2)); $i++) {
    echo " \n";
    }
    }
    echo "\n

    在下面的

    替换为:
    \n"; // by autoit end +++++++++++++++++++++++++++++++
    }
    Ok, End, by Autoit.
    Permanent URL:http://www.autoit.cn/index.php/content/view/87/25.html