FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Bug report




Post new topic Reply to topic  [ 3 posts ] 
 
Author Message
 Post subject: Problema su generateSubmenu
 Post Posted: Mon Jun 04, 2012 1:46 pm 
Offline

Joined: Wed May 16, 2012 5:55 pm
Posts: 33
Code:
$menus->generateSubmenu($site->getCurrentZone()->getName(), $site->getCurrentZone()->getCurrentElement()->getId(), 2);  //$zoneName, $parentElementId, $depthLimit


Pagal idėją turėtų spausdinti tik antro lygio puslapius.
$site->getCurrentZone()->getCurrentElement()->getId()
ši vieta atspausdina gerą "parent" skaičių, bet pati funkcija negrąžina nieko.


Top 
 Profile  
 
 Post subject: Re: Problema su generateSubmenu
 Post Posted: Mon Jun 04, 2012 3:00 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
Keista. Parentas tikrai turi vaikų, bet jų nespausdina? Iš pirmo žvilgsnio tavo kodas atrodo teisingai.

Šiaip konkretaus lygio spausdinimui sugalvota funkcija "generate". Jei nori atspausdinti antrą lygį:

$startDepth = 2;
$depthLimit = 1;
echo $menus->generate($site->getCurrentZone()->getName(), $startDepth, $depthLimit);


Jei nepadės, užrašyk ImpressPages CMS versiją, kurią naudoji. Tikrinsiu.


Top 
 Profile  
 
 Post subject: Re: Problema su generateSubmenu
 Post Posted: Tue Jun 05, 2012 6:34 am 
Offline

Joined: Wed May 16, 2012 5:55 pm
Posts: 33
Pasirodo kodas veikia :) tiesiog CSS padaryta kad nerodytu level2.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 3 posts ] 

Board index » Development » Bug report


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron