Quote:
2) cms_node. This is a modified preorder traversal table. You can ignore the nodeleft and noderight values and when you are done run a "verify and repair node table" in the admincp, which will save a lot of trouble. The most important fields are nodeid, parentnode (the nodeid of the section into which the article will go), contenttypeid, contentid (from the article table), and url
|
this should normaly update the index.
to add tags, just add the following line into the method:
Code:
$nodedm->set('keywords', $keywords);
and append an additional variable to the top
Code:
function create_article($sectionid, $title, $pagetext, $userid, $description = '', $htmltitle = '', $keywords = '')