template multipage

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
valeriop@
Forum Members
Forum Members
Posts: 51
Joined: Tue May 12, 2009 5:57 pm
Location: Perugia

template multipage

Post 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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: template multipage

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “The Lounge”