Developing a plugin and trying to leverage the weblog tag object to do most of the standard work.
// load weblog class
if ( ! class_exists('Weblog'))
{
require PATH_MOD.'/weblog/mod.weblog'.EXT;
}
$mod_weblog = new Weblog();
$mod_weblog->limit = $limit ? $limit : 100;
$mod_weblog->entries();
This works fine under normal circumstances, custom fields are replaced etc then my plugin does it’s job on it’s own tags. However once related entries (such as with Brandon Kelly’s Playa) come into play it seems that the weblog->entries() method overwrites the content of the object instead of appending to it.
$TMPL->tagdata is overwritten and becomes the tagdata for the related entry field tag pair. This doesn’t seem correct and breaks everything.
Does anyone have any suggestions to resolve this? If I need to post more code I can, however the workhorse is the ->entries() method on the weblog object.
Is there a better built in EE function call or object method that I can call to parse as the weblog tag would?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.