Page 1 of 1

Multi-column list of the categories in a section

Posted: Fri Jul 24, 2009 8:25 pm
by Schobluto
An old message of 2005 in this forum (http://forum.joomla.org/viewtopic.php?f ... w=previous) gave some tips and files to have a multi-column list of the categories in a section.

However this was for Joomla v1.0.2, seems not updated and the files to download here are inexistent in my Joomla 1.5

Does an update exist somewhere ? Or can someone tell me what I can do to have a multi-column list of the categories in a section? Is there an extension to do this or better a patch ?

Thanks a lot.

Re: Multi-column list of the categories in a section

Posted: Sun Jul 26, 2009 9:11 pm
by ooffick
Hi,

you can change the design of that page (including the multi column design) with the help of the template overwrite.
  1. create a folder in your template folder called "html" (if it doesn't exists)
  2. create a folder in that html folder called "com_content" (if it doesn't exists)
  3. create a folder in that com_content folder called "section" (if it doesn't exists)
  4. copy the file .../components/com_content/views/section/tmpl/default_item.php in this .../templates/[your-template]/html/com_content/section/ folder
  5. change that file so it fits your requirements
Olaf

Re: Multi-column list of the categories in a section

Posted: Tue Dec 15, 2009 12:20 am
by Garamond
Reviving this old thread, since I didn't got this trick to work. First of all, there was no file called "default_item.php", but "default.php". I guess this is the same file ooffick meant.

Anyway, I don't have the sufficient php knowledge to edit that file in a way that I can see my categories list as multi-column. Can anyone help me out here?

Re: Multi-column list of the categories in a section

Posted: Tue Dec 15, 2009 9:50 am
by ooffick
Which Joomla version do you have?

Olaf

Re: Multi-column list of the categories in a section

Posted: Tue Dec 15, 2009 11:29 am
by Garamond
1.5.15

Re: Multi-column list of the categories in a section

Posted: Tue Dec 15, 2009 11:46 am
by ooffick
yes, you can use the default.php file in the same directory.
How many columns would you like to have?

Olaf

Re: Multi-column list of the categories in a section

Posted: Tue Dec 15, 2009 11:52 am
by Garamond
Three columns would be sufficient in this case.

Re: Multi-column list of the categories in a section

Posted: Tue Dec 15, 2009 12:00 pm
by ooffick
Ok, try something like this:
  1. create a folder in your template folder called "html" (if it doesn't exists)
  2. create a folder in that html folder called "com_content" (if it doesn't exists)
  3. create a folder in that com_content folder called "section" (if it doesn't exists)
  4. copy the file .../components/com_content/views/section/tmpl/default.php in this .../templates/[your-template]/html/com_content/section/ folder
  5. open that file
  6. find the following lines:

    Code: Select all

    	<ul>
  7. replace it with the following lines:

    Code: Select all

    	<ul class="sectionlist">
  8. save the file
  9. add these css rules to the end of your css file:

    Code: Select all

    ul.sectionlist li {
    width:30%;
    float:left;
    height:60px;
    }
    ul.sectionlist {
    list-style:none;
    width:100%;
    }
    
Olaf

Re: Multi-column list of the categories in a section

Posted: Tue Dec 15, 2009 8:01 pm
by Garamond
I'm sorry to say the trick didn't work for me. Additional info that might be of importance: I'm using the Affinity theme from RocketTheme, style 2.

When you say css-file, do you mean the "template.css" or the "style2.css"?
I tried both but no results.

Re: Multi-column list of the categories in a section

Posted: Tue Dec 15, 2009 8:05 pm
by ooffick
You might need to clear the Joomla cache and clear your Broswer's cache as well. Do you have a URL?

Olaf

Re: Multi-column list of the categories in a section

Posted: Tue Dec 15, 2009 9:01 pm
by Garamond
Cleared both caches but still no difference. It's on a "restricted access" site, with a memberlist which I'm not autorized to publish. Sorry.

I see there are several css files in the css folder, did you mean the "template.css"?

Re: Multi-column list of the categories in a section

Posted: Tue Dec 15, 2009 10:11 pm
by ooffick
It doesn't really matter in which css file you add it. But yes, that css file would work.

Please use firebug to identify the exact CSS rule. To learn how to use Firebug, please click here:

http://docs.joomla.org/Tutorial:Using_F ... la_Website

Olaf