Multi-column list of the categories in a section
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Jul 23, 2009 9:50 pm
Multi-column list of the categories in a section
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.
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.
- ooffick
- Joomla! Master
- Posts: 11616
- Joined: Thu Jul 17, 2008 3:10 pm
- Location: Ireland
- Contact:
Re: Multi-column list of the categories in a section
Hi,
you can change the design of that page (including the multi column design) with the help of the template overwrite.
you can change the design of that page (including the multi column design) with the help of the template overwrite.
- create a folder in your template folder called "html" (if it doesn't exists)
- create a folder in that html folder called "com_content" (if it doesn't exists)
- create a folder in that com_content folder called "section" (if it doesn't exists)
- copy the file .../components/com_content/views/section/tmpl/default_item.php in this .../templates/[your-template]/html/com_content/section/ folder
- change that file so it fits your requirements
Olaf Offick - Global Moderator
learnskills.org
learnskills.org
-
- Joomla! Intern
- Posts: 50
- Joined: Sun Oct 22, 2006 9:48 pm
Re: Multi-column list of the categories in a section
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?
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?
- ooffick
- Joomla! Master
- Posts: 11616
- Joined: Thu Jul 17, 2008 3:10 pm
- Location: Ireland
- Contact:
Re: Multi-column list of the categories in a section
Which Joomla version do you have?
Olaf
Olaf
Olaf Offick - Global Moderator
learnskills.org
learnskills.org
-
- Joomla! Intern
- Posts: 50
- Joined: Sun Oct 22, 2006 9:48 pm
- ooffick
- Joomla! Master
- Posts: 11616
- Joined: Thu Jul 17, 2008 3:10 pm
- Location: Ireland
- Contact:
Re: Multi-column list of the categories in a section
yes, you can use the default.php file in the same directory.
How many columns would you like to have?
Olaf
How many columns would you like to have?
Olaf
Olaf Offick - Global Moderator
learnskills.org
learnskills.org
-
- Joomla! Intern
- Posts: 50
- Joined: Sun Oct 22, 2006 9:48 pm
Re: Multi-column list of the categories in a section
Three columns would be sufficient in this case.
- ooffick
- Joomla! Master
- Posts: 11616
- Joined: Thu Jul 17, 2008 3:10 pm
- Location: Ireland
- Contact:
Re: Multi-column list of the categories in a section
Ok, try something like this:
- create a folder in your template folder called "html" (if it doesn't exists)
- create a folder in that html folder called "com_content" (if it doesn't exists)
- create a folder in that com_content folder called "section" (if it doesn't exists)
- copy the file .../components/com_content/views/section/tmpl/default.php in this .../templates/[your-template]/html/com_content/section/ folder
- open that file
- find the following lines:
Code: Select all
<ul>
- replace it with the following lines:
Code: Select all
<ul class="sectionlist">
- save the file
- 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 Offick - Global Moderator
learnskills.org
learnskills.org
-
- Joomla! Intern
- Posts: 50
- Joined: Sun Oct 22, 2006 9:48 pm
Re: Multi-column list of the categories in a section
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.
When you say css-file, do you mean the "template.css" or the "style2.css"?
I tried both but no results.
- ooffick
- Joomla! Master
- Posts: 11616
- Joined: Thu Jul 17, 2008 3:10 pm
- Location: Ireland
- Contact:
Re: Multi-column list of the categories in a section
You might need to clear the Joomla cache and clear your Broswer's cache as well. Do you have a URL?
Olaf
Olaf
Olaf Offick - Global Moderator
learnskills.org
learnskills.org
-
- Joomla! Intern
- Posts: 50
- Joined: Sun Oct 22, 2006 9:48 pm
Re: Multi-column list of the categories in a section
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"?
I see there are several css files in the css folder, did you mean the "template.css"?
- ooffick
- Joomla! Master
- Posts: 11616
- Joined: Thu Jul 17, 2008 3:10 pm
- Location: Ireland
- Contact:
Re: Multi-column list of the categories in a section
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
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
Olaf Offick - Global Moderator
learnskills.org
learnskills.org