ETS|LuucEarth
05-22-2015, 07:12 AM
Well I have some questions about this class.
I am working on a mod for our site that bridges to our company Facebook Group, and Page pull the feeds from both and using the vBCms_DM_Article class auto post articles based on the feeds from those pages.
$dmnode=new vBCms_DM_Article();
$dmnode->set('description',$posttitle);
$dmnode->set('userid','1');
$dmnode->set('title',$posttitle);
$url=vB_Friendly_Url::clean_entities(htmlspecialch ars_decode($name));
$dmnode->set('url',$url);
$dmnode->set('contenttypeid',
vB_Types::instance()->getContentTypeID("vBCms_Article"));
$dmnode->info['skip_verify_pagetext']=true;
$dmnode->set('pagetext', $formoutput);
$dmnode->set('postauthor',$name);
$dmnode->set('parentnode',1);
$dmnode->set('publicpreview', 1);
$dmnode->set('comments_enabled', 1);
$dmnode->set('categoryid',34);
$dmnode->save();
This gets everything I need into the Database, BUT it is NOT visible in any of the content area's nor is it available in the content manager. What am I missing here?
I am working on a mod for our site that bridges to our company Facebook Group, and Page pull the feeds from both and using the vBCms_DM_Article class auto post articles based on the feeds from those pages.
$dmnode=new vBCms_DM_Article();
$dmnode->set('description',$posttitle);
$dmnode->set('userid','1');
$dmnode->set('title',$posttitle);
$url=vB_Friendly_Url::clean_entities(htmlspecialch ars_decode($name));
$dmnode->set('url',$url);
$dmnode->set('contenttypeid',
vB_Types::instance()->getContentTypeID("vBCms_Article"));
$dmnode->info['skip_verify_pagetext']=true;
$dmnode->set('pagetext', $formoutput);
$dmnode->set('postauthor',$name);
$dmnode->set('parentnode',1);
$dmnode->set('publicpreview', 1);
$dmnode->set('comments_enabled', 1);
$dmnode->set('categoryid',34);
$dmnode->save();
This gets everything I need into the Database, BUT it is NOT visible in any of the content area's nor is it available in the content manager. What am I missing here?