how to get the folder containing an newsitem

2 messages Options
Embed this post
Permalink
jack1973 () how to get the folder containing an newsitem
Reply Threaded More More options
Print post
Permalink
hallo

I have e newsitem, which is rendered with a pagetemplate.

I would like to display in the page template the absolute_url of the
folder containing the newsitem

I tryed with context/absolute_url  but it doesn't work

What is the right command?

thanks, Giacomo


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users
jack1973 () Re: how to get the folder containing an newsitem
Reply Threaded More More options
Print post
Permalink
Giacomo Zanobini ha scritto:
> I have e newsitem, which is rendered with trought a pagetemplate.
> I would like to display in the page template the absolute_url of the
> folder containing the newsitem
>  
resolved with
python:request.PARENTS[1].absolute_url()

I thought there was a method for GenericDocument, something to call,
like "here/parentFolder/absolute_urls" or "container/absolute_url"

bye



------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users