Hotel site

Post links to sites running CMS in all its glory.
Post Reply
User avatar
Rednes
Forum Members
Forum Members
Posts: 85
Joined: Wed Apr 08, 2009 1:09 pm

Hotel site

Post by Rednes »

work in progress:

http://tiny.cc/jaf6u
realrock
Forum Members
Forum Members
Posts: 227
Joined: Tue Sep 04, 2007 8:14 pm

Re: Hotel site

Post by realrock »

Very nice build website!

Are these different pages in CMSMS?
User avatar
Rednes
Forum Members
Forum Members
Posts: 85
Joined: Wed Apr 08, 2009 1:09 pm

Re: Hotel site

Post 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;



 }



}


Post Reply

Return to “CMS Show Off”