template multipage
Posted: Thu Oct 17, 2013 10:10 am
Hi.
i've a template that show in the same page his content and his children's content. The menu works using anchors.
In my template:
My UDT "accoda_content_figli"
...but i've this error:
" Call to a member function Show() on a non-object "
Help?
Another approach to solve the problem?
i've a template that show in the same page his content and his children's content. The menu works using anchors.
In my template:
Code: Select all
{menu template="lista_content" childrenof=$page_alias assign='figli'}
{accoda_content_figli figli=$figli}
{eval var=$altro}
Code: Select all
$gCms = cmsms();
$altro='';
$contentops = $gCms->GetContentOperations();
$arr = str_replace(' ','',explode(",", $params['figli']));
$contentops = $gCms->GetContentOperations();
$conta = count($arr);
for($i=0;$i<$conta;$i++)
{
$mycontent = $contentops->LoadContentFromAlias($arr[$i]);
$altro .= $mycontent->Show();
}
$smarty->assign('altro',$altro);
" Call to a member function Show() on a non-object "
Help?
Another approach to solve the problem?