Getting Parent ID in Latest CMS Made Simple

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
nielsenrc
New Member
New Member
Posts: 9
Joined: Thu Mar 03, 2011 7:52 pm

Getting Parent ID in Latest CMS Made Simple

Post 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();
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Getting Parent ID in Latest CMS Made Simple

Post by Dr.CSS »

You may find it easier to use CGSimplesmarty, it has all of those just one simple call away...
Post Reply

Return to “Developers Discussion”