Hi all,
I figured it out and wanted to post the solution as well. It is new in Mambo 4.5.2 as far as can tell from my other 4.5.1 sites.
I was using a "Blog - Content Category" link in my menu. When displaying a category blog unpublished items are not shown at all, not even to Editors, Publishers or Administrators. It's as simple as that.
Only when using a "Table - Content Category" the unpublished items are shown in the list to special users so they can edit ehm from the frontend directly.
You have two choices now.
1) Create an extra usermenu item of type "Table - Content Category" for special users to each category you want them to edit or publish from the front end.
2) Change the code in /components/com_content/content.php so unpublished items are also shown in the Blog view of a category:
content.php, Mambo 4.5.2, Line 1623:
Code:
$where[] = "a.state = '1'";
if ( !$access->canEdit ) {
$where[] = "( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '". $now ."' )";
$where[] = "( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '". $now ."' )";
} Change this if statement to:
Code:
if ( !$access->canEdit ) {
$where[] = "a.state = '1'";
$where[] = "( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '". $now ."' )";
$where[] = "( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '". $now ."' )";
}else{
$where[] = "a.state >= '0'";
} Explanation (at least some words):
The where[] array contains SQL selection conditions for reading the content items out of the database. The SQL statement is different when showing a category blog compared to showing a category table. Unpublished items have state=0. The 0 state is not included in the category blog display but is in the table view (compare line 332 in function showCategory()).
Best regards,
Sundance