Joomla Programmer: Joomla 1.5 Control Menu Web Links Category Display Number Select Dropdown

by admin on March 5, 2009

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.

Joomla Programmer. Web links category information

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>
Joomla Programmer. Web link cateogry display showing other categories but no category count.

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

Web Link Category Count

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:

&nbsp;
<span class=”small”>
(<?php echo $category->numlinks;?>)
</span>

Joomla Programmer web link no count.

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) : ?>

Joomla Programmer. Web Links Modified.

Previous post:

Next post: