LPH
Well-known member
A var_dump isn't showing a way to get the resource logo. Am I missing something obvious?
The above script pulls the title and I can link to it but cannot figure out a way to retrieve the logo / icon. In fact, looking at the database does not show a logo fieldlogo_width and logo_height.
PHP:
/**
* Script to pull the latest updated resources from the XF Resource Manager
* @var $resModel XenResource_Model_Resource
*/
$resModel = XenForo_Model::create( 'XenResource_Model_Resource' );
// @todo Make options
$fetchOptions = array( 'limit' => 5, 'order' => 'resource_date', 'direction' => 'desc' );
$rmupdates = $resModel->getResources( array(), $fetchOptions );
var_dump($rmupdates);
The above script pulls the title and I can link to it but cannot figure out a way to retrieve the logo / icon. In fact, looking at the database does not show a logo field
Last edited: