Skip to main content
18 events
when toggle format what by license comment
Aug 7, 2017 at 14:51 comment added PЯINCƎ it's not a good way to hide them, i gave you the best practice in my code, you have to find the groups values and put them in $groups = $this->getGroups(); // your groups $mySelectedGroups
Aug 7, 2017 at 14:46 comment added Greg Or is there way of excluding menu? There is <?php echo $group->getName(); ?> and if the name of it is "something" then display:none?
Aug 7, 2017 at 14:26 comment added Greg I tired $mySelectedGroups = array('[2]'); and $mySelectedGroups = array([2]); but it ain't working.
Aug 7, 2017 at 14:22 comment added Greg Hymmm... just looking at it, there beginning of it array(6) { [2]=> object(, the number [2] is the entity ID. I have checked the next categories and they all match. Is there any way to use these?
Aug 7, 2017 at 13:49 comment added Greg Still nothing being displayed :( Driving me crazy now!
Aug 7, 2017 at 13:43 comment added PЯINCƎ look my update $mySelectedGroups = array('1403', '1404', '1405');
Aug 7, 2017 at 13:42 history edited PЯINCƎ CC BY-SA 3.0
added 14 characters in body
Aug 7, 2017 at 13:38 comment added Greg Updated the code now. Have a look at the content of the $groups... not sure how should I do it now...
Aug 7, 2017 at 13:26 comment added PЯINCƎ Look my Edit 2.
Aug 7, 2017 at 13:25 history edited PЯINCƎ CC BY-SA 3.0
added 1072 characters in body
Aug 7, 2017 at 13:13 comment added Greg See my updated question, here is the code I have now but it is not displaying any navigation now. Also, how do you use the getData()? Will that work: <?php echo var_dump($groups->getData()) ?>?
Aug 7, 2017 at 13:04 comment added PЯINCƎ you should put in $mySelectedGroups the real groups ! , try var_dump($groups) or var_dump($groups->getData())
Aug 7, 2017 at 13:01 comment added Greg No navigation is being displayed now, is there anyway of finding out what groups names are being pulled in here $groups = $this->getGroups();? It would make it easier for me to find out what to put in the array.
Aug 7, 2017 at 12:50 comment added PЯINCƎ look my update please
Aug 7, 2017 at 12:49 history edited PЯINCƎ CC BY-SA 3.0
added 244 characters in body
Aug 7, 2017 at 12:39 comment added Greg I have this: $groups = $this->getGroups(); so it pulls all the groups but I am not sure what it pulls... Is this ID?
Aug 7, 2017 at 12:36 comment added Greg Well, this is how my navigation is created. All I want, is to select what groups to include within my navigation tab. For now all of the groups created in the backend are being displayed.
Aug 7, 2017 at 12:27 history answered PЯINCƎ CC BY-SA 3.0