| Joomla! http://forum.joomla.org/ |
|
| [LOW:CONFIRMED:1.0.12] Empty categories not displayed http://forum.joomla.org/viewtopic.php?f=198&t=126621 |
Page 1 of 1 |
| Author: | stone [ Sat Dec 30, 2006 9:10 pm ] |
| Post subject: | [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
Description: Example: You have section with two categories, one of them is empty. You create link to this section -> List - Content Section and you set "Empty Categories in Section" to show But there is only one category visible when you enter the link, not empty one. Reported on: Joomla! 1.0.12 Stable [ Sunfire ] 25 December 2006 01:00 UTC Classification: [Q&T] Critical/High/Medium/Low/Enhancement Affected functions: See description Related files: content.php Steps to replicate: see description Analysis: [Q&T] Confirmed/Unable to confirm/Rejected Any other comments Proposed fix(es): In file content.php line 324 $access_check_content = "\n AND b.access <= " . (int) $gid; should be replaced with $access_check_content = "\n AND ( b.access <= " . (int) $gid ." OR b.access is null)"; Topic / Artifact ID: none System info: Every configuration |
|
| Author: | fotakis [ Thu Jan 25, 2007 9:08 am ] |
| Post subject: | Re: Empty categories not displayed |
Thank you for the fix |
|
| Author: | notzippy [ Tue Feb 06, 2007 5:57 am ] |
| Post subject: | Re: Empty categories not displayed |
Had this problem too, the ifnull() may be better for checking if ($noauth) { $access_check = "\n AND a.access <= " . (int) $gid; $access_check_content = "\n AND ifnull(b.access,0) <= " . (int) $gid; } |
|
| Author: | Robin [ Sat Mar 24, 2007 9:02 am ] |
| Post subject: | Re: Empty categories not displayed |
Q&T Note; marking as confirmed |
|
| Author: | kane738 [ Thu Mar 29, 2007 4:43 pm ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
hi, That seems to fix the issue with "List - Content Section", however there seems to be a similar issue with "Blog - Content Category": If the category is empty, the description isn't displayed (despite "show description" being selected). As soon as there's content in there, the description shows up. Surely the description should be there no matter whether the category is empty or not? Any help with this would be greatly appreciated! cheers, Kane |
|
| Author: | kauselot [ Mon Jun 18, 2007 10:39 am ] | |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed | |
For blog-content category: replace line 1386: } else { // Generic blog empty display echo _EMPTY_BLOG; } with: } else if ( !$total && $menu && $menu->componentid && ( $descrip || $descrip_image ) ) { // Generic blog empty display // checks to see if there is description to display echo '
} else { // Generic blog empty display echo _EMPTY_BLOG; } |
||
| Author: | UVMKate [ Thu Jun 21, 2007 1:52 pm ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
Thanks for those fixes. Running version 1.8 I had to use NoZippy's fix. The first one made all my categories disappear regardless of content! |
|
| Author: | SodaJim [ Tue Jul 03, 2007 2:24 am ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
Thanks for the post/solution ! ! ! I'll give this a try... I was pulling my hair out bt trying various settings to get a few empty categories to display ! ! ! |
|
| Author: | kane738 [ Fri Jul 27, 2007 12:37 pm ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
Cheers Kauselot! Works like a dream :-) |
|
| Author: | Papillon [ Wed Aug 15, 2007 9:02 am ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
Hello, I have exactly the same problem after updating from Joomla 1.0.11 to 1.0.13. I looked in the content.php and I saw that the fix from above is included. But the problem is still there. Categories with no content items are not shown in list content section. Is there a solution for this problem? Thanks Papi |
|
| Author: | kauselot [ Wed Aug 15, 2007 10:28 am ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
If you are refering to my fix - it fixes "If the category is empty, the description isn't displayed" problem, which is not the same problem as "Categories with no content items are not shown in list content section". There is also a fix for that problem in this thread. Also check if parameter in list content section configuration "show empty categories" is set to "yes". |
|
| Author: | Papillon [ Wed Aug 15, 2007 11:18 am ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
Thank you for your answer kauselot. I meant the fix from notzippy. It is included in the content.php of Joomla! 1.0.13. the configuration ist set like you described it. When I put my site back to 1.0.11 all is ok. |
|
| Author: | Papillon [ Wed Aug 29, 2007 8:20 pm ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
No solution around? |
|
| Author: | vatokely [ Sun Sep 02, 2007 7:29 am ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
Hi Papillon, I found that the fix in 1.0.13 content.php is not exactly the same than the one from notzippy. So if you replace line 326 Quote: access_check_content = "\n AND ( b.access <= " . (int) $gid ." OR b.access is null)"; by Quote: $access_check_content = "\n AND ifnull(b.access,0) <= " . (int) $gid; (from notzippy fix) it will work. |
|
| Author: | Papillon [ Sun Sep 02, 2007 8:41 am ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
Thank you very much. This solved my Problem! Now I can upgrade my site. Papi |
|
| Author: | MALdito [ Mon Oct 01, 2007 10:04 pm ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
thanks for the fix! Can't believe such an important feature has a bug ... even in 1.0.13!! |
|
| Author: | wolfix [ Tue Nov 20, 2007 7:14 pm ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
components/com_content/content.php vatokely wrote: I found that the fix in 1.0.13 content.php is not exactly the same than the one from notzippy. So if you replace line 326 Quote: access_check_content = "\n AND ( b.access <= " . (int) $gid ." OR b.access is null)"; by Quote: $access_check_content = "\n AND ifnull(b.access,0) <= " . (int) $gid; (from notzippy fix) it will work. Thanks vatokely - it works! wolfix |
|
| Author: | ThePiston [ Thu Nov 29, 2007 8:41 pm ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
ok, where is content.php |
|
| Author: | wolfix [ Thu Nov 29, 2007 8:47 pm ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
components/com_content/content.php |
|
| Author: | ThePiston [ Thu Nov 29, 2007 8:58 pm ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
i just installed 1.0.13 yesterday and it still has the old 1386 line without blog fix... i did the fix, but still not working. The links now work with other fix, but not blog... Blog of "Reviews" section: http://odemrs.com/index.php?option=com_content&task=blogsection&id=4&Itemid=27 Links of "Review" section: http://odemrs.com/index.php?option=com_content&task=section&id=4&Itemid=28 |
|
| Author: | ThePiston [ Fri Nov 30, 2007 4:17 am ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
can someone post their working 1.0.13 content.php file? TIA |
|
| Author: | MALdito [ Wed Jun 18, 2008 3:14 am ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
Bug is still presente in version 1.0.15 Stable [ Daytime ] 22 February 2008 |
|
| Author: | arctic_cyclone [ Tue Jun 24, 2008 12:23 pm ] |
| Post subject: | Re: [LOW:CONFIRMED:1.0.12] Empty categories not displayed |
Hi, I tried some of the solutions above, and many worked, there is one issue: Example Case Code: Section Cars [ Here is description for cars in general] Category 4wd [Here are descriptions for 4wd] Article Hummer [Description of a hummer] Article Rover [description of a rover] Category Prototypes [Description for Prototypes] No Articles The initial problem was that the category Prototype would not show up. Now the issue is that everything shows up on the Section 'Cars' . Everything in the section is expanded, including 'Prototypes'. The desired result I was hoping for is hierarchical links, for example We click on 'Cars' section link from the menu we will see: Code: Car's Description * 4WD * Prototypes Just as it would for category page showing links of articles in it.. Any help would be great, Thanks guys. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|