Hi there,

T2 is supposed to support hierachical menu. But I am not familiar
enough to make it run perfectly. What I did:

1. download T3 package and only use it as a T2

2. In my db.py of my application I do:
  from applications.t3.modules.t2 import T2
  t2=T2(request,response,session,cache,T,db)
  # after this, most normal t2 functions, such itemize(), search() can
work as expected.

3. Then I tried hierachical menus and ran into some problems. Perhaps
I did not use T3 in a correct way?

a. the default layout.html comes from the welcome application can not
work with t2 style hierachical menu. It chokes when facing a sub-menu.
Must I manually redefine a new layout.html as told by t2.pdf, or
should the web2py default layout.html be t2-compatible?
b. the applications/t3/modules/t2.py tends to find some files in a
different location
        response.files=[
          '/plugin_t2/static/t2/scripts/jquery.js',
          '/plugin_t2/static/t2/styles/calendar.css',
          ...
   Shouldn't they be something like "/%s/static/jquery.js" %
theDirNameInWhichYouInstallT3  ?
c. sfmenu.css does not exist in applications/t3 at all.  Shouldn't T3
package be a super set of T2?

Suggestions are welcome. Thanks!

Sincerely,
             Ruijun Luo, 2009-Jan-17, 23:40(PM), Sat


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to