I want to retrieve the content of custom block created by custom block manager plugin.
How to get the custom block by name in my theme code ?
Is there any code example on how to do it ?
already tested by using this code :
$metricsDao = DAORegistry::getDAO('MetricsDAO');
$listPlugin = $metricsDao->retrieve(
"SELECT plugin_name, setting_name, setting_value FROM plugin_settings WHERE (context_id='?') AND (setting_name='blockContent') ", (int) $currentJournalId
);
But I am not sure what DAORegistry::getDAO used for? since I would doing query on plugin table retrieve rather than Metric table
and as I retrieve the setting_value I got this value :
a:1:{s:5:"en_US";s:3:"tes";}
what is s:3 is about since as I explore the code number of s is always different on every block?
Thanks