Closed (won't fix)
Project:
Taxonomy Menu
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2013 at 14:11 UTC
Updated:
26 Jul 2013 at 08:15 UTC
Jump to comment: Most recent
Comments
Comment #1
summit commentedHi,
Having exactly the same situation. How can I get rid of "There is currently no content classified with this term".
greetings, Martijn
Comment #2
summit commentedHi,
I got rid of it using this module! http://drupal.org/project/taxonomy_display
Greetings, Martijn
Comment #3
johnvIt seems the message is from core: #786256: "There are currently no posts in this category." - but there are some in subcategories
Comment #4
johnvThe message "There is currently no content classified with this term." is the core standard message for empty terms.
- You can create a view for it - Views 3 has some template views for Terms.
- Use http://drupal.org/project/taxonomy_display, as Martijn does.
Comment #5
suvankar7 commentedPlease add the below code under "THEME_preprocess_page" function on templete.php in your theme folder
.
if(isset($variables['page']['content']['system_main']['no_content'])) {
unset($variables['page']['content']['system_main']['no_content']);
}
Comment #6
billstennett commentedIn case it helps anyone I needed to do this on a site running Drupal 7.52. The code posted above did not work for me but it was very close. For me the 'no_content' variable which needed unsetting appeared two levels further down. See below for what worked for me.
// remove "there is currently no content classified with this term" message
function THEME_preprocess_page(&$vars) {
if(isset($vars['page']['content']['content']['content']['system_main']['no_content'])) {
unset($vars['page']['content']['content']['content']['system_main']['no_content']);
}
}