Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 10:36 pm (All times are UTC )

 




Post new topic Reply to topic  [ 23 posts ] 
Author Message
Posted: Sat Dec 30, 2006 9:10 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Aug 19, 2005 8:22 am
Posts: 168
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


Last edited by Robin on Sat Mar 24, 2007 9:03 am, edited 1 time in total.

Top
   
 
Posted: Thu Jan 25, 2007 9:08 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jan 19, 2007 5:24 pm
Posts: 6
Thank you for the fix


Top
  E-mail  
 
Posted: Tue Feb 06, 2007 5:57 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Feb 01, 2006 2:43 pm
Posts: 3
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;
}


Top
  E-mail  
 
Posted: Sat Mar 24, 2007 9:02 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15089
Q&T Note; marking as confirmed

_________________
Regards Robin


Top
   
 
Posted: Thu Mar 29, 2007 4:43 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Oct 02, 2006 2:48 pm
Posts: 28
Location: UK
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


Top
  E-mail  
 
Posted: Mon Jun 18, 2007 10:39 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Sep 15, 2005 1:15 am
Posts: 133
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 '';
$link = $mosConfig_live_site .'/images/stories/'. $description->image;
echo '';
echo '';
echo '';
echo '
';
if ( $descrip_image && $description->image ) {
echo '';
}
if ( $descrip && $description->description ) {
echo $description->description;
}
echo '

';
echo '
';
} else {
// Generic blog empty display
echo _EMPTY_BLOG;
}

_________________
JBS member
BzZzZ, marketing and web communication agency: http://www.bzzzz.biz
Belmondo.si travel: http://www.belmondo.si


Top
  E-mail  
 
Posted: Thu Jun 21, 2007 1:52 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jun 15, 2007 2:12 pm
Posts: 13
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!


Top
  E-mail  
 
Posted: Tue Jul 03, 2007 2:24 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 04, 2006 4:22 pm
Posts: 85
Location: South Florida
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 ! ! !


Top
  E-mail  
 
Posted: Fri Jul 27, 2007 12:37 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Oct 02, 2006 2:48 pm
Posts: 28
Location: UK
Cheers Kauselot! Works like a dream :-)


Top
  E-mail  
 
Posted: Wed Aug 15, 2007 9:02 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 18, 2005 2:08 pm
Posts: 30
Location: Good old Germany
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


Top
  E-mail  
 
Posted: Wed Aug 15, 2007 10:28 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Thu Sep 15, 2005 1:15 am
Posts: 133
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".

_________________
JBS member
BzZzZ, marketing and web communication agency: http://www.bzzzz.biz
Belmondo.si travel: http://www.belmondo.si


Top
  E-mail  
 
Posted: Wed Aug 15, 2007 11:18 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 18, 2005 2:08 pm
Posts: 30
Location: Good old Germany
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.


Last edited by Papillon on Wed Aug 15, 2007 11:21 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Wed Aug 29, 2007 8:20 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 18, 2005 2:08 pm
Posts: 30
Location: Good old Germany
No solution around?


Top
  E-mail  
 
Posted: Sun Sep 02, 2007 7:29 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Jun 04, 2007 5:26 am
Posts: 6
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.


Top
   
 
Posted: Sun Sep 02, 2007 8:41 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 18, 2005 2:08 pm
Posts: 30
Location: Good old Germany
Thank you very much. This solved my Problem!
Now I can upgrade my site.

Papi


Top
  E-mail  
 
Posted: Mon Oct 01, 2007 10:04 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Feb 27, 2006 6:22 am
Posts: 29
thanks for the fix!
Can't believe such an important feature has a bug ... even in 1.0.13!!


Top
   
 
Posted: Tue Nov 20, 2007 7:14 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Dec 06, 2005 5:07 pm
Posts: 61
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


Last edited by wolfix on Thu Nov 29, 2007 8:47 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Thu Nov 29, 2007 8:41 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Nov 07, 2005 3:45 am
Posts: 447
ok, where is content.php


Top
  E-mail  
 
Posted: Thu Nov 29, 2007 8:47 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Dec 06, 2005 5:07 pm
Posts: 61
components/com_content/content.php


Top
  E-mail  
 
Posted: Thu Nov 29, 2007 8:58 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Nov 07, 2005 3:45 am
Posts: 447
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


Last edited by ThePiston on Thu Nov 29, 2007 9:02 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Fri Nov 30, 2007 4:17 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Nov 07, 2005 3:45 am
Posts: 447
can someone post their working 1.0.13 content.php file?  TIA


Top
  E-mail  
 
Posted: Wed Jun 18, 2008 3:14 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Feb 27, 2006 6:22 am
Posts: 29
Bug is still presente in version 1.0.15 Stable [ Daytime ] 22 February 2008


Top
   
 
Posted: Tue Jun 24, 2008 12:23 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Mar 29, 2008 2:58 pm
Posts: 7
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.


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group