Joomla Programmer
Removing Joomla 1.5 Web Link Category and Hit Counts
Joomla 1.5.9 leaves out a control parameter to avoid showing the “how many do you want to display” select dropdown when displaying a Web Link category.

To get rid of the Display # dropdown:
Go to components/com_weblink/category/tmpl/default_items.php
Remove
echo JText::_(‘Display Num’) .’ ’;
echo $this->pagination->getLimitBox();
To get rid of the category counts:
Go to components/com_weblinks/views/category/tmpl/default.php
Remove
<span class=”small”>
(<?php echo $category->numlinks;?>)
</span>

There’s also no way to remove the category counts from the Web Link category listing.

To remove the category counts:
In components/com_weblinks/views/categories/tmpl/default.php
Find
<a href=”<?php echo $category->link; ?>” class=”category<?php echo $this->params->get( ‘pageclass_sfx’ ); ?>”>
<?php echo $this->escape($category->title);?></a>
After that remove:
<span class=”small”>
(<?php echo $category->numlinks;?>)
</span>

Even if you turn off hits in the menu item pointing to the Web Links the hits will display anyway. Perhaps due to cache, I’m not sure, the system ignores the Table Headings set to Hide parameter in the menu item pointing to the Web Link category.
To remove the table permanently (the administrator menu parameters will now not work at all though):
Go to Go to components/com_weblink/category/tmpl/default_items.php:
Find:
<?php if ( $this->params->def( ’show_headings’, 1 ) ) : ?>
Change this to:
<?php if (false) : ?>
Find:
<?php if ( $this->params->get( ’show_link_hits’ ) ) : ?>
Change this to:
<?php if (false) : ?>

You must log in to post a comment.