Puslapiai su Flash meniu

Lietuviškas CMS Made Simple forumas

Moderator: Augustas

Post Reply
Airidas
Forum Members
Forum Members
Posts: 46
Joined: Sun Mar 21, 2010 1:32 pm

Puslapiai su Flash meniu

Post by Airidas »

Sveiki,

Senokai lankiausi forume, kaip visi laikotes? :)

Parasiau scripta, kadangi savo puslapiuose naudoju nemazai meniu su flash, susiduriau su problemele, reikejo, kad flashas keistu mygtukai, kai pereini i kita puslap:

  var fo = new FlashObject("flash/menu_v8.swf?button={page}", "movie", "100%", "127", "8", "");

Ikeliau UDT:

global $gCms;
global $smarty;

$manager =& $gCms->GetHierarchyManager();

$var = 'root_page_id';
if( isset($params['assign']) && $params['assign'] != '' )
{
$var = $params['assign'];
}
$result = "NO RESULT";
$thisPage = $gCms->variables['content_id'];
$currentNode = &$manager->sureGetNodeById($thisPage);
while( isset($currentNode) && $currentNode->getLevel() >= 0 )
{
  $currentContent =& $currentNode->getContent();
  $result = $currentContent->Hierarchy();
  $currentNode =& $currentNode->getParentNode();
}
$smarty->assign($var,$result);

echo $result;


Gal kam pravers kiek veliau...
Iki ;)
Post Reply

Return to “Lithuanian - Lietuviškai”