Actions

Difference between revisions of "Override:No Numbers in Category List"

From Joomla! Documentation

(New page: To remove the numbers in a category list copy this file: \components\com_content\views\category\tmpl\default_items.php to the the html folder of your template. templates\yourTemplate\h...)
 
(Create overrides category)
Line 27: Line 27:
 
[[Category:Tips and tricks]]
 
[[Category:Tips and tricks]]
 
[[Category:Tips and tricks 1.5]]
 
[[Category:Tips and tricks 1.5]]
 +
[[Category: Overrides]]

Revision as of 00:18, 12 June 2009

To remove the numbers in a category list copy this file:


\components\com_content\views\category\tmpl\default_items.php

to the the html folder of your template.

templates\yourTemplate\html\com_content\category\default_items.php


Open the file.

Delete or comment out line 43 <?php echo JText::_('Num'); ?>


Delete or comment out line 70 if you still want an empty column where the numbers were <?php echo $this->pagination->getRowOffset( $item->count ); ?>

Or lines 69-71 to eliminate the whole column

        <td align="right">
                <?php echo $this->pagination->getRowOffset( $item->count ); ?>
        </td>