Which layout plugin?

Your plugin maybe outdated...

Richard

On Thu, Aug 4, 2011 at 5:43 AM, Casey Schroeder <vizqu...@gmail.com> wrote:

>
> Ok, this is just a problem not addressed I see.  Not specific to the
> above code.  If i install the layouts plugin to the welcome app i get
> the same result of a menu with odd behavior, so it is something that
> will pop up for everyone I think.  I will address it in my code.
>
> On Aug 1, 3:10 pm, Richard Vézina <ml.richard.vez...@gmail.com> wrote:
> > If you use the wizard maybe there could be a bug somewhere and the menu
> get
> > it.
> >
> > You should map you menu to your controller function by hand... Start with
> a
> > single level menu and copy paste sub menu, by trial and error you should
> be
> > able to figure what the proper syntax you should use base on the example
> app
> > and welcome app... Then you only have to generalize the approach when you
> > are trusting in your code.
> >
> > Richard
> >
> >
> >
> >
> >
> >
> >
> > On Mon, Aug 1, 2011 at 1:56 PM, Casey Schroeder <vizqu...@gmail.com>
> wrote:
> >
> > > Help appreciated.  I do not see the error in this code and neither do
> > > my editors.  All i did was make a new app from scratch (not with the
> > > very latest release, but downloaded fresh a week ago) using the wizard
> > > and inserted this in menu.py to get this problem (I have tried 5
> > > different new templates, and it is only the welcome app format that
> > > accepts the code.
> >
> > > response.menu = [
> > >    (T('Home'),False,URL('index'),[]),
> > >    (T('Domain'),False,URL('index'),
> > >        [
> > >            (T('agriculture'),False,URL('agriculture_home'),
> > >                [
> > >                    (T('R&D'),False,URL('agriculture_rnd'),[]),
> >
> > > (T('Consulting'),False,URL('agriculture_consulting'),[]),
> > >                    (T('Education'),False,URL('agriculture_edu'),[])
> > >                ]
> > >            ),
> > >            (T('equipment'),False,URL('equip_home'),
> > >                [
> > >                    (T('R&D'),False,URL('equip_rnd'),[]),
> > >                    (T('Consulting'),False,URL('equip_consulting'),
> > > []),
> > >                    (T('Education'),False,URL('equip_edu'),[])
> > >                ]
> >
> > >            ),
> > >            (T('analysis'),False,URL('analysis_home'),
> > >                [
> > >                    (T('R&D'),False,URL('analysis_rnd'),[]),
> > >                    (T('Consulting'),False,URL('analysis_consulting'),
> > > []),
> > >                    (T('Education'),False,URL('analysis_edu'),
> > > [])
> > >                ]
> > >            )
> > >        ]
> > >    ),
> >
> > >    (T('Function'),False,URL('index'),
> > >        [
> > >            (T('R&D'),False,URL('home_rnd'),
> > >                [
> > >                    (T('agriculture'),False,URL('agriculture_rnd'),
> > > []),
> > >                    (T('equipment'),False,URL('equip_rnd'),[]),
> > >                    (T('analysis'),False,URL('analysis_rnd'),
> > > [])
> > >                ]
> > >            ),
> >
> > >            (T('Consulting'),False,URL('home_consulting'),
> > >                [
> >
> > > (T('agriculture'),False,URL('agriculture_consulting'),[]),
> > >                    (T('equipment'),False,URL('equip_consulting'),[]),
> > >                    (T('analysis'),False,URL('analysis_consulting'),
> > > [])
> > >                ]
> > >            ),
> >
> > >            (T('Education'),False,URL('home_edu'),
> > >                [
> > >                    (T('agriculture'),False,URL('agriculture_edu'),
> > > []),
> > >                    (T('equipment'),False,URL('equip_edu'),[]),
> > >                    (T('analysis'),False,URL('analysis_edu'),[])
> > >                ]
> > >            )
> > >        ]
> > >    )
> >
> > > ]
> >
> > > On Aug 1, 9:26 am, Richard Vézina <ml.richard.vez...@gmail.com> wrote:
> > > > Show your code, it must be closing bracket or something... It is easy
> to
> > > > miss one out not closed when making sub-sub-menu, code get confusing
> > > > sometimes.
> >
> > > > There is no other threads.
> >
> > > > Richard
> >
> > > > On Sat, Jul 30, 2011 at 6:08 AM, Casey Schroeder <vizqu...@gmail.com
> >
> > > wrote:
> >
> > > > > Hi Richard, i ran into a similar problem with sub-sub-menus just
> today
> > > > > using a number of the available layouts in the layouts plugin - in
> > > > > fact all 4 that i downloaded.  It worked fine with the default
> layout,
> > > > > but with the other four the menu was not navigable.  I used firefox
> 5
> > > > > and the latest source download.  Is there an update to this thread
> you
> > > > > can share?  Thanks, Casey
> >
> > > > > On Jun 6, 3:28 pm, Richard Vézina <ml.richard.vez...@gmail.com>
> wrote:
> > > > > > Do you have a example (screenshot) of the glitch... I don't see
> any
> > > > > problem
> > > > > > in the welcome app?
> >
> > > > > > Richard
> >
> > > > > > On Mon, Jun 6, 2011 at 4:15 PM, Manuele Pesenti
> > > > > > <manuele.pese...@gmail.com>wrote:
> >
> > > > > > > thank you Richard but the problem is the css code that in most
> or
> > > quite
> > > > > all
> > > > > > > layouts does not defines proper classes to manage sub menu so
> if
> > > you
> > > > > use it
> > > > > > > you will obtain ugly effects... I'm not so skilled with css and
> I
> > > was
> > > > > > > looking for some layout that contains classes for submenu
> >
> > > > > > > Sorry if my quest was not so clear
> >
> > > > > > > cheers
> >
> > > > > > >        Manuele
> >
> > > > > > > On 06/06/2011 16:51, Richard Vézina wrote:
> >
> > > > > > >> I am not sure to understand what you need, but you can nest
> you
> > > stuff
> > > > > > >> like this :
> >
> > > > > > >>     response.menu = [
> > > > > > >>          [T('root1').capitalize(),
> > > > > > >>              False,
> > > > > > >> '',
> > > > > > >>              [
> > > > > > >>              [T('level1-1').capitalize(),
> > > > > > >>                  False,
> > > > > > >>                  URL(request.application,
> > > > > > >> 'controller',
> > > > > > >> 'function'),
> > > > > > >>                  [
> > > > > > >>                      [T('level2-1').capitalize(),
> > > > > > >>                      False,
> > > > > > >>                      URL(request.application,
> > > > > > >> 'controller',
> > > > > > >> 'function'),
> > > > > > >>                      []],
> > > > > > >>                  ]],
> > > > > > >>              [T('level1-2').capitalize(),
> > > > > > >>                  False,
> > > > > > >>                  URL(request.application,
> > > > > > >> 'controller',
> > > > > > >> 'function'),
> > > > > > >>                  []],
> > > > > > >>              [T('level1-3').capitalize(),
> > > > > > >>                  False,
> > > > > > >>                  URL(request.application,
> > > > > > >> 'controller',
> > > > > > >> 'function'),
> > > > > > >>                  []],
> > > > > > >>          ]],
> >
> > > > > > >>          [T('root2').capitalize(),
> > > > > > >>              False,
> > > > > > >> '',
> > > > > > >>              [
> > > > > > >>                  [T('level1-1').capitalize(),
> > > > > > >>                      False,
> > > > > > >>                      URL(request.application,
> > > > > > >> 'controller',
> > > > > > >> 'function'),
> > > > > > >>                      []],
> > > > > > >>                  [T('level1-2').capitalize(),
> > > > > > >>                      False,
> > > > > > >>                      URL(request.application,
> > > > > > >> 'controller',
> > > > > > >> 'function'),
> > > > > > >>                      []],
> > > > > > >>          ]],
> > > > > > >>         ]
> >
> > > > > > >> Take care of proper indentation and open and closing your
> bracket
> > > > > > >> correctly.
> >
> > > > > > >> Richard
> >
> > > > > > >> On Mon, Jun 6, 2011 at 7:13 AM, Manuele Pesenti
> > > > > > >> <manuele.pese...@gmail.com <mailto:manuele.pese...@gmail.com
> >>
> > > wrote:
> >
> > > > > > >>    Hi *,
> > > > > > >>    I realize that most of the layouts available for download
> do
> > > not
> > > > > > >>    support the submenu, in the sense that it's not managed so
> if
> > > > > > >>    defined it couses unwanted behavior... does anybody knows
> > > layouts
> > > > > > >>    that implements submenu managment?
> >
> > > > > > >>    thanks
> >
> > > > > > >>            Manuele
>

Reply via email to