PDA

View Full Version : How to span more news


mgjr
11-22-2011, 02:44 PM
I am trying to modify the default template, I want to modify the more news section per category at the bottom into 4 or more columns. I span it across the whole width of the site. I searched the forum and couldn't find any hint.
Thanks for your help.

Micha
11-22-2011, 03:10 PM
You need to move include for more news bellow right column (right above the closing div of #content).

Next, in order to change number of column, you need to edit box/more_news.tpl, and change the numbers on three places:


line 8 - step="2" - change the value of step from 2 to 4
line 10 - loop="2"- change the value of loop from 2 to 4
line 11 - cell_{col|mod:'2'} - change the value of mod from 2 to 4


That will give you 4 categories per row (or even more depending on number values you enter).

You'll also have to adjust CSS, and in order to see which classes are used, I recommend disabling compress.php (http://www.vivvo.net/doc/knowledgebase/template-css-doesn-t-load-after-the-installation.html) and using Firebug (http://getfirebug.com/) extension for Firefox.