Page 1 of 1

Hotel site

Posted: Fri Dec 10, 2010 12:37 pm
by Rednes
work in progress:

http://tiny.cc/jaf6u

Re: Hotel site

Posted: Fri Dec 10, 2010 4:29 pm
by realrock
Very nice build website!

Are these different pages in CMSMS?

Re: Hotel site

Posted: Sun Dec 12, 2010 10:14 am
by Rednes
Yes, I use this tag:

Code: Select all

global $gCms;
$manager =& $gCms->GetHierarchyManager();
$thisPage = $gCms->variables['page_name'];
$currentNode = &$manager->sureGetNodeByAlias($thisPage);
$contentops =& $gCms->GetContentOperations();

$nodes = $currentNode->getChildren();

if ($currentNode->hasChildren()) {
 
 foreach ($nodes as $node) {

     $content= $node->getContent();
    
     $contentx = $contentops->LoadContentFromAlias($content->Alias());   
     $onecontent = $contentx->mProperties->mPropertyValues['content_en'];
     $smarty->_compile_source('temporary template', $onecontent , $compiled);
       @ob_start();
       $smarty->_eval('?>' . $compiled);
       $contentx = @ob_get_contents();
       @ob_end_clean();         
       echo $contentx;



 }



}