Hi,

the contentlead image is accessible calling leadImage_thumb, leadImage_preview, ... instead of image_thumb, image_preview, ... on the object. You can also use hasContentLeadImage on the brain (so before calling getObject) to check if a contentlead image is available for the content.

Have a nice end of day,

Gauthier Bastien
IMIO
Zoning industriel, 34 - 5190 Mornimont
Tél. 071 780 979
www.communesplone.org

Le 27/07/12 21:13, ajung a écrit :
Perhaps you want to describe your real problem in depth instead of letting
people
guess. obj/image or obj/image_<scale> works for special cases for the
'image' field using a traversal hook. plone.app.imaging is your friend for
rendering arbitrary
  tags for arbitrary content-types having an image field.

-aj


herna wrote
The answers are good, but not perfect:

Thanks for the answers!

I'm trying to use the contentlead image, but I have a special situation
here: this aditional image will be used to be presented in front page.
After search the catalog, I do a getObject() call to get access to the
"traditional" image (using obj/image or obj/image_preview, whatever), but
the contentlead image is not accessible.

Thanks!

Hernã G. Saldanha
MSN: hgsaldanha@
“A dificuldade é passageira, o desistir é para sempre” - Bernardo Fonseca



2012/7/27 Andreas Jung &lt;lists@&gt;

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Two perfectly fine answers are not enough?

http://plone.293351.n2.nabble.com/Add-field-to-News-Item-tp7557385.html

- -aj

Hernã Saldanha wrote:
Dear friends,

I need to put a new field into News Item content type, another image
field. This image will be used to display a "featured" News Item at
my website home.

Can you suggest the best way to do this?

Thanks!

Hernã G. Saldanha MSN: hgsaldanha@
&lt;mailto:hgsaldanha@&gt; “A dificuldade é passageira, o desistir
é para sempre” - Bernardo Fonseca

_______________________________________________ Product-Developers
mailing list [email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers
- --
ZOPYX Limited         | Python | Zope | Plone | MongoDB
Hundskapfklinge 33    | Consulting & Development
D-72074 Tübingen      | Electronic Publishing Solutions
www.zopyx.com         | Scalable Web Solutions
- --------------------------------------------------
Produce & Publish - www.produce-and-publish.com


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJQEqpDAAoJEADcfz7u4AZjcDgLv3ofv18RhdjgRcA5WCDTbvgL
MaJ82hIxWIi8egUZjIkC+/o0RvE5ocHbBhZWltNukzMkbgXTkj96N6YW7mZtmVzx
KwG07TkEmbzsPEzr6xdVK9Fv9FGrEsmpmmncqNaC9I8zPbhx4HWAz8XOufqi2GEm
fnKFHmBf5Msyiw0WGJitKIkI2HuArkGg5uan1/RnUcV1hWCw3C6BCJ5/Nmav/5ge
nHi470U3n2u8qN6V5I4ANoBdVSk4gmgUKnDSIWpwEluU56bxb1WmZhieb3nFJY8/
TArbpPAu1W31yB3sPddACMHBk52GpcByR5vWiCg98ctI4oMJafK9m3a9TE6W9U1D
W4zXqVA0VxDm7+grcUauAog7JdmS11GNuSMehbUHQyiIXrgfYtD+VyB+oUHxilfs
qMVXur5yRu1o/L0ysJz5aK1Xu6mFppbIXV9kbfblC2BN7PuLVCXiPvdo+ze+2cYG
w7pTuemkgR1ukOouobr64TT40CQJoRI=
=QGJo
-----END PGP SIGNATURE-----

_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers




--
View this message in context: 
http://plone.293351.n2.nabble.com/Add-new-field-to-News-Item-tp7557408p7557419.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to