Page 1 of 1

Getting Parent ID in Latest CMS Made Simple

Posted: Thu May 02, 2013 8:19 pm
by nielsenrc
It appears that upgrading the CMS has broken the CMSMS API -

Can anyone tell me how to get the parent ID in the latest version of the API?

What's wrong with the script below - worked before.

$gCms = cmsms();
$contentops = $gCms->GetContentOperations();
$content_obj = $contentops->getContentObject();

$parent_id = $content_obj->ParentId();
$alias = $content_obj->Alias();

Re: Getting Parent ID in Latest CMS Made Simple

Posted: Fri May 03, 2013 5:56 pm
by Dr.CSS
You may find it easier to use CGSimplesmarty, it has all of those just one simple call away...