Recent Posts of Frog CMS in vertical menus and 'this' context http://forum.madebyfrog.com/rss en-us 25 vertical menus and 'this' context <p>sorry David no visible example for the moment. Site will be changed sooner</p> <ul> <li>I think code speaks itself !</li> </ul> Tue, 19 Aug 2008 15:14:13 +0000 http://forum.madebyfrog.com/topic/447?page=1#post_2585 hefeust http://forum.madebyfrog.com/topic/447?page=1#post_2585 vertical menus and 'this' context <p>the snippet is in my temp dir</p> <p>www.eozine.fr/temp</p> Tue, 19 Aug 2008 15:12:25 +0000 http://forum.madebyfrog.com/topic/447?page=1#post_2584 hefeust http://forum.madebyfrog.com/topic/447?page=1#post_2584 vertical menus and 'this' context <p>Glad you have a solution! I'm still not 100% clear on what it is you are trying to do!! O_o</p> Tue, 19 Aug 2008 04:19:10 +0000 http://forum.madebyfrog.com/topic/447?page=1#post_2561 David http://forum.madebyfrog.com/topic/447?page=1#post_2561 vertical menus and 'this' context <p>doing a detour, it works ! code comes sooner</p> Mon, 18 Aug 2008 18:38:30 +0000 http://forum.madebyfrog.com/topic/447?page=1#post_2553 hefeust http://forum.madebyfrog.com/topic/447?page=1#post_2553 vertical menus and 'this' context <p>Hello, I'm trying to dispaly vertical menus splitted in two parts (left and right sidebar)</p> <p>So the foreach() in the header standard snippet won't work and I need a function called menu_entry to display properly (and by hand) then entries (subpages)</p> <p>I get something like this</p> <ul> <li>left sidebar</li> </ul> <p>-- echo menu_entry('subpage1_slug'); -- echo menu_entry('subpage2_slug');</p> <ul> <li>right sidebar</li> </ul> <p>-- echo menu_entry('subpage3_slug'); -- echo menu_entry('subpage4_slug');</p> <p>and subpages inherit main page layout.</p> <p>But I noticed a problem : $this !</p> <p>in the context of the sidebar, it refers the main page, but not subpages !</p> <p>so I can't use it to find subpages, slug, title, url and determine which page is currently browed...</p> <p>if I put the function in a snippet, it's worst : I get a fatal error because of this context is lost (since I try making a 'closure' writing $thisPage = $this before function call...)</p> <p>How could I proceed ?</p> <p>I think the answer is in 'CSS play' demo but I'm not sure</p> Mon, 18 Aug 2008 15:24:18 +0000 http://forum.madebyfrog.com/topic/447?page=1#post_2546 hefeust http://forum.madebyfrog.com/topic/447?page=1#post_2546