Page 1 of 1

template multipage

Posted: Thu Oct 17, 2013 10:10 am
by valeriop@
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:

Code: Select all

{menu template="lista_content" childrenof=$page_alias assign='figli'}     
{accoda_content_figli figli=$figli}           
{eval var=$altro} 
My UDT "accoda_content_figli"

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);
...but i've this error:

" Call to a member function Show() on a non-object "

Help?
Another approach to solve the problem?

Re: template multipage

Posted: Thu Oct 17, 2013 10:54 am
by Rolf