Hi, How to make categories 2 column?

Comments

dortik’s picture

This is how I did it.

Just add this code to your template.php

function phptemplate_node_browser_term($name, $path, $count_terms = 0, $count_nodes = 0, $content = "", $pos = 0, $count = 0) {
        $output = '';
        
        if ($count <= 5) {
                $output .= '<li>';
        } elseif (($pos + 1) % 2 == 0) {
                $output .= '<li style="margin-left: 200px; text-align: left; margin-bottom: 5px">';
        } else {
                $output .= '<li style="clear: both; float: left; width: 200px; text-align: left; margin-bottom: 5px">';
        } 
        
        $output .= l($name, $path) . " ($count_terms/$count_nodes) $content</li>";
        
        return $output;
}
dortik’s picture

Status: Active » Closed (fixed)
dortik’s picture

Status: Closed (fixed) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

general need’s picture

Exactly what I was after, unfortunately it didn't work.