First,
add new parameter in config array near line 60:
'hideUnpublished' => isset($hideUnpublished) ? $hideUnpublished: TRUE, // pixelchutes - work with unpublished documents
Second,
replace the following string near line 584:
$c->where(array('modResource.published:=' => 1));
with these:
// pixelchutes - Work with unpublished documents
$c->where(array('modResource.published:=' <> ( $this->_config['hideUnpublished'] ? 0 : 2 ))); // fixed
// $c->where(array('modResource.published:=' => 1)); // original
add new parameter in config array near line 60:
'hideUnpublished' => isset($hideUnpublished) ? $hideUnpublished: TRUE, // pixelchutes - work with unpublished documents
Second,
replace the following string near line 584:
$c->where(array('modResource.published:=' => 1));
with these:
// pixelchutes - Work with unpublished documents
$c->where(array('modResource.published:=' <> ( $this->_config['hideUnpublished'] ? 0 : 2 ))); // fixed
// $c->where(array('modResource.published:=' => 1)); // original