Joomla fix: News table layout

Published in Website Design | On May 12th, 2008

Joomla news layout can be adjusted through CSS and code changes.
This is how you can change the fixed column width in content category table display (which you get when you create a menu for table-content category).

Go to Components > Com_content > content.html.php to find around line number 238 the following code:


    if ( $params->get( 'headings' ) ) {
                ?>
                <tr>
                    <?php
                    if ( $params->get( 'date' ) ) {
                        ?>
                        <td class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>" width="25%">
                            <?php echo _DATE; ?>
                        </td>
                        <?php
                    }
                    if ( $params->get( 'title' ) ) {
                        ?>
                        <td class="sectiontableheader<?php echo $params->get( 'pageclass_sfx' ); ?>">
                            <?php echo _HEADER_TITLE; ?>
                        </td>
                        <?php
                    }
                    if ( $params->get( 'author' ) ) {..............

and change the width parameters for each column.

Also change row 176
from

<table width="100%" border="0" cellspacing="0" cellpadding="0">

to

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="contentcategory">
Share |

Leave a Reply