Using Load() to pull in the content of another page [solved]
Posted: Tue Mar 24, 2009 2:06 pm
I am researching the API commands for CMSMS and found a method called Load() which, as far as I can tell, allows the user to load in content taking the id of the page. I'm hoping to use this method to pull in content from sub-pages within a main page.
Example:
The page "Recent Work" is in my navigation menu, and this page has two sub pages - let's call them Work Page 1 and Work Page 2. Currently the Recent Work page is blank but I want to incorporate smarty tags to pull in the titles and maybe a small thumbnail from both pages Work Page 1 and Work Page 2.
I tried implementing $content_obj->Load(id) } (where "id" is the content_id of the sub page) but this does not work as I think I'm calling it from the wrong object. If anyone knows more details about this or maybe a better method to use, please let me know! This would help me immensely.
Regards
Michael
Example:
The page "Recent Work" is in my navigation menu, and this page has two sub pages - let's call them Work Page 1 and Work Page 2. Currently the Recent Work page is blank but I want to incorporate smarty tags to pull in the titles and maybe a small thumbnail from both pages Work Page 1 and Work Page 2.
I tried implementing $content_obj->Load(id) } (where "id" is the content_id of the sub page) but this does not work as I think I'm calling it from the wrong object. If anyone knows more details about this or maybe a better method to use, please let me know! This would help me immensely.
Regards
Michael