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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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
> > > <[email protected]>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
> > > >> <[email protected] <mailto:[email protected]>> 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