Michael Gale schrieb:
> Hey,
> 
> I am new to TurboGears and am trying to use tabs.
> 
> I have setup the following in my controller:
> 
> tabber = widgets.Tabber()
> ...
> then under my default welcome:
> return dict(now=time.ctime(), tabber=tabber)
> 
> So in my welcome.kid I can setup the tabs with tabber and tabbertab
> class fine, however I want each tab to point to it's own kid file. I
> thought I could just replace the content between <h2></h2> with a link
> and then setup my controller however it seems not to work when I click
> on it from the browser ? If I request the page manually it works.

I'm not entirely sure what you are after here. Do you mean dynamic as in 
dynamically loaded by the page? That's the domain of AJAX & thus MochiKit.

Or do you want the page rendered, but the tabs being fed from different 
templates? That you should do with a widget. Return a widget for each 
tab, and the widget has it's template set to the KID-template of your 
choice.

Of course you can combine both approaches.


Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to