How to hide filter and display # in Category
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Intern
- Posts: 69
- Joined: Sat Feb 03, 2007 8:20 pm
How to hide filter and display # in Category
I have create a section and linked it to a menu. Type Articles » Section
When clicked it displays a list of categories. I was able to remove filter above those categories, but now when you click on a category and get a list of articles I can't seem to be able to figure out where to turn off filter above those article.
Need help.
When clicked it displays a list of categories. I was able to remove filter above those categories, but now when you click on a category and get a list of articles I can't seem to be able to figure out where to turn off filter above those article.
Need help.
-
- Joomla! Apprentice
- Posts: 11
- Joined: Fri Jun 23, 2006 1:39 pm
Re: How to hide filter and display # in Category
Hey if it is the article index that you are seeing you can turn that off in the plugin.
Extensions>>Plugin Manager>>Content-Pagebreak.
Extensions>>Plugin Manager>>Content-Pagebreak.
-
- Joomla! Apprentice
- Posts: 20
- Joined: Mon Nov 06, 2006 11:27 pm
Re: How to hide filter and display # in Category
I've got the same issue and that did not correct the issue.
Under com_content I can modify the code (html/com_content/category/default_items.php) and show that it is used in both cases.
The links for the menu item and then the category display are different and this may be the right area but the params are not being picked up under the second scenario.
thanks
stacy
Under com_content I can modify the code (html/com_content/category/default_items.php) and show that it is used in both cases.
The links for the menu item and then the category display are different and this may be the right area but the params are not being picked up under the second scenario.
thanks
stacy
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Oct 05, 2007 9:18 am
Re: How to hide filter and display # in Category
Hi, did anyone manage to resolve this issue. I have the same and cannot figure out how to fix it.
Any help please?
Any help please?
- PhilOSparta
- Joomla! Guru
- Posts: 534
- Joined: Sun Feb 25, 2007 10:44 pm
- Location: New Jersey, USA
- Contact:
Re: How to hide filter and display # in Category
I am also searching for a fix to this, and I will post back here if I find anything.
-
- Joomla! Apprentice
- Posts: 20
- Joined: Mon Nov 06, 2006 11:27 pm
Re: How to hide filter and display # in Category
One programatic option that I came up with was to add parms to the template I'm using for Filter, Display and Heading. I added 3 radio type parms to the templateDetails.xml with default values of 0. 0 being No and 1 being Yes. I then modified the templates\[your template name here]\html\com_content\category\default_items.php logic for the Filter, Display # and Table Heading sections.
...see code below...
$this->parms->get... is used to read in the parameters set in the parms.ini file stored at the [your template here] root.
I'm looking at other options as well and this is an all or nothing type of fix.
stacy
...see code below...
$this->parms->get... is used to read in the parameters set in the parms.ini file stored at the [your template here] root.
I'm looking at other options as well and this is an all or nothing type of fix.
stacy
Code: Select all
<form action="<?php echo $this->action; ?>" method="post" name="adminForm">
<?php if ($this->params->get('showFilter')) : ?>
<div class="filter">
...
</div>
<?php endif; ?>
<?php if ($this->params->get('showPageDisplay')) : ?>
<div class="display">
...
</div>
<?php endif; ?>
<table class="category">
<?php if ($this->params->get('showTableHeadings')) : ?>
...
-
- Joomla! Apprentice
- Posts: 5
- Joined: Mon Feb 25, 2008 7:30 pm
Re: How to hide filter and display # in Category
Thank you very much for your solution Stacy. It solved my problem.
I just want to clarify for others what files were modified, because your last post is a bit confusing.
Put Stacy's code in the file:
\components\com_content\views\category\tmpl\default_items.php
Then edit your template parameters file:
\templates\[name of template]\params.ini
and put in the new parameters:
showFilter=0
showPageDisplay=0
A value of '0' deactivates display of these items, and '1' activates them.
I hope the development team will be able to repair this. There are similar problems in other areas with not being able to access parameters for categories if you get to them through a section menu item.
I just want to clarify for others what files were modified, because your last post is a bit confusing.
Put Stacy's code in the file:
\components\com_content\views\category\tmpl\default_items.php
Then edit your template parameters file:
\templates\[name of template]\params.ini
and put in the new parameters:
showFilter=0
showPageDisplay=0
A value of '0' deactivates display of these items, and '1' activates them.
I hope the development team will be able to repair this. There are similar problems in other areas with not being able to access parameters for categories if you get to them through a section menu item.
-
- Joomla! Apprentice
- Posts: 20
- Joined: Mon Nov 06, 2006 11:27 pm
Re: How to hide filter and display # in Category
Sorry for the confusion.
I have also found that if the new parms are not defined in the templateDetails.xml for your template that they will be lost in the parms.ini file when/if you save anything in the template via the Joomla Administration Template Editor.
[joomla_install]\templates\[your_template]\templateDetails.xml - template install and configuration information.
Example parm in templateDetails.xml
There is a document that discusses this in much more detail coming down the pipe and it looks like it will be stored under api.joomla.org. I don't know when it will be made available for general consumption.
Stacy
I have also found that if the new parms are not defined in the templateDetails.xml for your template that they will be lost in the parms.ini file when/if you save anything in the template via the Joomla Administration Template Editor.
[joomla_install]\templates\[your_template]\templateDetails.xml - template install and configuration information.
Example parm in templateDetails.xml
Code: Select all
<parms>
<param name="showFilter" type="radio" default="0" label="Show Filter Field" description="Used to Show or Hide the Filter Field">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
</parms>
Stacy
-
- Joomla! Apprentice
- Posts: 5
- Joined: Mon Feb 25, 2008 7:30 pm
Re: How to hide filter and display # in Category
Thanks Stacy.
I had manually edited the params.ini file and so didn't run into that problem.
I've fixed the templateDetails.xml file to add the showFilter and showPageDisplay parameters and my template configuration in the Joomla backend also works well now.
Thanks Again!
Rob
I had manually edited the params.ini file and so didn't run into that problem.
I've fixed the templateDetails.xml file to add the showFilter and showPageDisplay parameters and my template configuration in the Joomla backend also works well now.
Thanks Again!
Rob
-
- Joomla! Fledgling
- Posts: 4
- Joined: Sun Aug 13, 2006 6:08 pm
Re: How to hide filter and display # in Category
Hi !
I'm not a programmer so I have some problems with the solution provided by Stacy. So maybe someone can explain me (and maybe other readers) how to proceed with hiding filter and display# within the category list.
I understand that I have to add the code into the file default_items.php. But where ? Can I add it on any line in the PHP file ? I tried to add it just after the first occurence of the text:
and replaced that line with the complete text from Stacy. I added also the 2 parameters into the params.ini and added the <parms> part to the end of the templateDetail.xml
But then I get an error.
Is it planned to eliminate the issue in a future version ?
I'm not a programmer so I have some problems with the solution provided by Stacy. So maybe someone can explain me (and maybe other readers) how to proceed with hiding filter and display# within the category list.
I understand that I have to add the code into the file default_items.php. But where ? Can I add it on any line in the PHP file ? I tried to add it just after the first occurence of the text:
Code: Select all
<form action="<?php echo $this->action; ?>" method="post" name="adminForm">
and replaced that line with the complete text from Stacy. I added also the 2 parameters into the params.ini and added the <parms> part to the end of the templateDetail.xml
But then I get an error.
Is it planned to eliminate the issue in a future version ?
- radiant_tech
- Joomla! Guru
- Posts: 531
- Joined: Sat Dec 15, 2007 3:02 pm
- Location: Washington DC Metro
Re: How to hide filter and display # in Category
If I understand the main question posed here (getting the # column to not display), there is a much simpler solution that does not involve changing the core code.
Take a look at my post here.
As for keeping the filter from displaying, there is generally a Show/Hide setting in the menu item parameters that can be set.
HTH,
Take a look at my post here.
As for keeping the filter from displaying, there is generally a Show/Hide setting in the menu item parameters that can be set.
HTH,
Catch up with me on Google+: https://plus.google.com/106742096640193690159
-
- Joomla! Apprentice
- Posts: 20
- Joined: Mon Nov 06, 2006 11:27 pm
Re: How to hide filter and display # in Category
Again, sorry for the confusion on this subject. I'm a Senior developer and forget to speak/write in normal languages on forums
A lot of my original information comes from this thread http://forum.joomla.org/viewtopic.php?f=428&t=227508 with explinations on how to override standard Joomla output with templates. Amy explains things much better than I and her examples started me in the right direction. I've also read thru three (3) new books available on Joomla 1.5 that discuss templates in much more detail than I can. I would say that templates are a simple subject for a developer and something that a non-developer can do with a little help. The rules are simple but the technobabble, i.e. php mixed with html, css, etc. can be a little intimdating. Using other templates, many are available now, as examples you should be able to achieve the desired output you are looking for.
More Links, mostly technical in nature.
http://forum.joomla.org/viewtopic.php?f=487&t=255233 - discussion about the new Template Parameters document.
http://dev.joomla.org/component/option, ... templates/ - api for Templates. Note that this is incomplete at this time.
http://docs.joomla.org/Defining_a_param ... etails.xml - Joomla doc on Template Params
http://docs.joomla.org/New_features_int ... _templates Joomla 1.5 feature document on Templates.
Hope this helps. If you have more questions I'll try to help as I can.
Stacy
A lot of my original information comes from this thread http://forum.joomla.org/viewtopic.php?f=428&t=227508 with explinations on how to override standard Joomla output with templates. Amy explains things much better than I and her examples started me in the right direction. I've also read thru three (3) new books available on Joomla 1.5 that discuss templates in much more detail than I can. I would say that templates are a simple subject for a developer and something that a non-developer can do with a little help. The rules are simple but the technobabble, i.e. php mixed with html, css, etc. can be a little intimdating. Using other templates, many are available now, as examples you should be able to achieve the desired output you are looking for.
More Links, mostly technical in nature.
http://forum.joomla.org/viewtopic.php?f=487&t=255233 - discussion about the new Template Parameters document.
http://dev.joomla.org/component/option, ... templates/ - api for Templates. Note that this is incomplete at this time.
http://docs.joomla.org/Defining_a_param ... etails.xml - Joomla doc on Template Params
http://docs.joomla.org/New_features_int ... _templates Joomla 1.5 feature document on Templates.
Hope this helps. If you have more questions I'll try to help as I can.
Stacy
-
- Joomla! Enthusiast
- Posts: 102
- Joined: Thu Aug 24, 2006 8:54 am
- Location: Manchester, England
- Contact:
Re: How to hide filter and display # in Category
This code seems good, but I can't work out where to put it within the php document? Anybody shed light on this please.
Thanks
Thanks
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun Nov 23, 2008 8:08 pm
Re: How to hide filter and display # in Category
Hey I found out easier:
if the category is used on a menu you just have to edit the menu parameters. then you will be able to hide the pagination.
on basic parameters set #links = all
on Advance parameters set Pagination = hide
and the "Display #" filter will not be display
if the category is used on a menu you just have to edit the menu parameters. then you will be able to hide the pagination.
on basic parameters set #links = all
on Advance parameters set Pagination = hide
and the "Display #" filter will not be display
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Jan 28, 2009 7:31 pm
- Location: Vancouver, Canada
- Contact:
Re: How to hide filter and display # in Category
Thanks for all the info posted here. Related to what bachar said, that's a good solution, however, if you do that things won't show up in the default breadcrumbs trail correctly. Instead, your category will appear as if linked from the home page. At least, that's what happened in my case...
-
- Joomla! Enthusiast
- Posts: 120
- Joined: Thu Jul 06, 2006 8:15 pm
Re: How to hide filter and display # in Category
I think it`s much more easier than this and doesn't need any code hacking at all :
Go to your menu item (the one that link to the contact page).
In the right tabs :
Open LIST LAYOUTS
Put this option at "HIDE"
- Display Select
That's it ...
Go to your menu item (the one that link to the contact page).
In the right tabs :
Open LIST LAYOUTS
Put this option at "HIDE"
- Display Select
That's it ...
- medialabpro
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Jul 16, 2008 10:13 am
- Location: Santa Cruz, California
- Contact:
Re: How to hide filter and display # in Category
I had this same issue:
1) To remove the filter dropdown, I used the same method as masterfred - use the parameters in the Menu Item settings: Set "Display Select" to "HIDE".
2) after I removed this Display Select, I still had the work "Filter" showing at the top of my Newsfeed Category page.
To remove the text "Filter", I went to /language/en-GB/en-GB.ini and removed the work "Filter" in between the quotation marks on lines 173 and 174 to:
JGLOBAL_FILTER_BUTTON=""
JGLOBAL_FILTER_LABEL=""
This worked for me.
1) To remove the filter dropdown, I used the same method as masterfred - use the parameters in the Menu Item settings: Set "Display Select" to "HIDE".
2) after I removed this Display Select, I still had the work "Filter" showing at the top of my Newsfeed Category page.
To remove the text "Filter", I went to /language/en-GB/en-GB.ini and removed the work "Filter" in between the quotation marks on lines 173 and 174 to:
JGLOBAL_FILTER_BUTTON=""
JGLOBAL_FILTER_LABEL=""
This worked for me.
MediaLabPro Inc.
Peace of mind sometimes comes from a single piece of code...
...peace of code, on the other hand, rarely comes from a single mind.
Peace of mind sometimes comes from a single piece of code...
...peace of code, on the other hand, rarely comes from a single mind.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Wed Dec 14, 2011 11:52 am
Re: How to hide filter and display # in Category
In 2.5.7 I have a short list of articles, 10, and don't need a 'display #' function so have selected List Layouts Display Select Hide but... the outline box in which the 'display #' function is displayed remains behind. Its a minor, minor issue but its starting to stare defiantly back at me (and the site users of course). Most appreciated if anyone with an aerosol of Bug Off! could help.
http://www.bugspraycart.com/wp-content/ ... 741001.jpg
http://www.bugspraycart.com/wp-content/ ... 741001.jpg