template_id vs action id with Five views

5 messages Options
Embed this post
Permalink
Andreas Jung () template_id vs action id with Five views
Reply Threaded More More options
Print post
Permalink
For highlighting the current action plone compares the action id with
the template_id. Unfortunately Five browser:pages used as view behind
an action always have 'index' as template_id. Any idea how to  get around
this issue (Plone 2.1.3)?

Andreas

attachment0 (193 bytes) Download Attachment
Alec Mitchell () Re: template_id vs action id with Five views
Reply Threaded More More options
Print post
Permalink
On 4/18/06, Andreas Jung <[hidden email]> wrote:
> For highlighting the current action plone compares the action id with
> the template_id. Unfortunately Five browser:pages used as view behind
> an action always have 'index' as template_id. Any idea how to  get around
> this issue (Plone 2.1.3)?

When I've neded, this I explicitly defined a template_id in my
template, which is lame but works.  Plone should really be looking at
the url instead of template_id, and will do so in 2.5 (hopefully).

Alec


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Alexander Limi () Re: template_id vs action id with Five views
Reply Threaded More More options
Print post
Permalink
In reply to this post by Andreas Jung
On Tue, 18 Apr 2006 20:10:48 +0200, Andreas Jung  
<[hidden email]> wrote:

> For highlighting the current action plone compares the action id with
> the template_id. Unfortunately Five browser:pages used as view behind
> an action always have 'index' as template_id. Any idea how to  get around
> this issue (Plone 2.1.3)?

Probably something that should be reported in the tracker for 2.5, where  
we actually use the Z3 views.

--
_____________________________________________________________________

      Alexander Limi · Chief Architect · Plone Solutions · Norway

  Consulting · Training · Development · http://www.plonesolutions.com
_____________________________________________________________________

       Plone Co-Founder · http://plone.org · Connecting Content
   Plone Foundation · http://plone.org/foundation · Protecting Plone



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Alexander Limi · http://limi.net

Rocky Burt-2 () Re: template_id vs action id with Five views
Reply Threaded More More options
Print post
Permalink
On Thu, 2006-20-04 at 19:53 +0200, Alexander Limi wrote:

> On Tue, 18 Apr 2006 20:10:48 +0200, Andreas Jung  
> <[hidden email]> wrote:
>
> > For highlighting the current action plone compares the action id with
> > the template_id. Unfortunately Five browser:pages used as view behind
> > an action always have 'index' as template_id. Any idea how to  get around
> > this issue (Plone 2.1.3)?
>
> Probably something that should be reported in the tracker for 2.5, where  
> we actually use the Z3 views.

Well, this isn't an issue with views that are used *within* Plone
because most of the views we use are used by skin templates not in place
of them.  So that wouldn't really work as being a bug against Plone.

OTOH, I think a large group of us have felt that template_id is *not*
something that should be used for this sort of thing.  So the use of
template_id possibly should be bugged or plipped to add a good
replacement or something.

- Rocky


--
Rocky Burt
AdaptiveWave - Content Management as a Service
http://www.adaptivewave.com
Content Management Made Simple




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Andreas Jung () Re: Re: template_id vs action id with Five views
Reply Threaded More More options
Print post
Permalink


--On 20. April 2006 16:14:15 -0230 Rocky Burt <[hidden email]>
wrote:
>
> OTOH, I think a large group of us have felt that template_id is *not*
> something that should be used for this sort of thing.  So the use of
> template_id possibly should be bugged or plipped to add a good
> replacement or something.
>

I think the complete problem is somewhat broader and the current
implementation of the highlighting code is flaky. Consider the usecase
where you want to use *multiple* template under the same action tab. E.g.
an import action consists of a template for some form and a template for
the import result..I have to think about what would be necessary to "tie"
multiple templates to the same tab.

-aj


attachment0 (193 bytes) Download Attachment