arczicoder
03-03-2007, 18:05
witam,
mam skrypt, wyswietla on COS z lewej strony, natomiast z prawej chcialbym miec wyswietlane artykuly.
Wydawalo sie proste, wrzucilem to co mi bedzie potrzebne z pierwszych lini components/com_content/content.php
require_once( $mainframe->getPath( 'front_html', 'com_content' ) );
$pop = intval( mosGetParam( $_REQUEST, 'pop', 0 ) );
$limit = intval( mosGetParam( $_REQUEST, 'limit', 0 ) );
$limitstart = intval( mosGetParam( $_REQUEST, 'limitstart', 0 ) );
// Editor usertype check
$access = new stdClass();
$access->canEdit = $acl->acl_check( 'action', 'edit', 'users', $my->usertype, 'content', 'all' );
$access->canEditOwn = $acl->acl_check( 'action', 'edit', 'users', $my->usertype, 'content', 'own' );
$access->canPublish = $acl->acl_check( 'action', 'publish', 'users', $my->usertype, 'content', 'all' );
// cache activation
$cache =& mosCache::getCache( 'com_content' );
// loads function for frontpage component
$cache->call( 'frontpage', $gid, $access, $pop, 0, $limit, $limitstart );
ale niestety nic sie nie wyswietla, z parametrow wysylanych funkcja call nie zostala nigdzie wyzej zadeklarowana wartosc $gid, globalna zmienna?
prosze o pomoc :)
mam skrypt, wyswietla on COS z lewej strony, natomiast z prawej chcialbym miec wyswietlane artykuly.
Wydawalo sie proste, wrzucilem to co mi bedzie potrzebne z pierwszych lini components/com_content/content.php
require_once( $mainframe->getPath( 'front_html', 'com_content' ) );
$pop = intval( mosGetParam( $_REQUEST, 'pop', 0 ) );
$limit = intval( mosGetParam( $_REQUEST, 'limit', 0 ) );
$limitstart = intval( mosGetParam( $_REQUEST, 'limitstart', 0 ) );
// Editor usertype check
$access = new stdClass();
$access->canEdit = $acl->acl_check( 'action', 'edit', 'users', $my->usertype, 'content', 'all' );
$access->canEditOwn = $acl->acl_check( 'action', 'edit', 'users', $my->usertype, 'content', 'own' );
$access->canPublish = $acl->acl_check( 'action', 'publish', 'users', $my->usertype, 'content', 'all' );
// cache activation
$cache =& mosCache::getCache( 'com_content' );
// loads function for frontpage component
$cache->call( 'frontpage', $gid, $access, $pop, 0, $limit, $limitstart );
ale niestety nic sie nie wyswietla, z parametrow wysylanych funkcja call nie zostala nigdzie wyzej zadeklarowana wartosc $gid, globalna zmienna?
prosze o pomoc :)