[Zope3-dev] Re: problem with 'Add new content'

Godefroid Chapelle gotcha@swing.be
Thu, 17 Apr 2003 18:07:49 +0200


Garrett Smith wrote:
> I noticed that the "Common Tasks" sidebar doesn't work unless the
> "Contents" tab is selected. E.g. try to add something using the sidebar
> when the Preview tab is selected -- nothing happens.
> 
> The skins use this...
> 
>     <a href="#"
>        tal:attributes="href
> string:${request/getURL}?type_name=${info/action};
>        class info/selected" >
> 
> which propogates the current view. I changed it to...
> 
>     <a href="#"
>        tal:define="baseurl python:request.getURL(1)"
>        tal:attributes="href
> string:${baseurl}/@@contents.html?type_name=${info/action};
>                        class info/selected" >
> 
> which ensures that "@@contents.html" is used.
> 
> I'm not sure who's interested in this sort of thing -- let me know if
> you want me to post it to the collector.
> 
> - Garrett Smith

Thanks

I checked it in.

FYI, these Add content actions will migrate to the action menu bar (blue 
bar under tabs).

-- 
Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 18 / 202
1348 Louvain-la-Neuve
Belgium

Tel + 32 (10) 459901

TVA 467 093 008
RC Niv 49849