customized folder / page preview in ZMI (renderShort() or similiar)
Niels Dettenbach <[email protected]> Wed, 05 Mar 2014 11:59 +0100
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Organization | Syndicat IT&Internet |
| Message-ID | <1864942.Df8DsfPmX9@gongo> |
--nextPart2940974.MOyPtFihCi
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="us-ascii"
Hi guys,
at the time i'm looking for a way to customize the view of a ZMSFolder (or=
=20
PAGE type object) in the ZMI / editor view where per default just the=20
attr('title') / getTitle() is shown - i.e. for adding further meta data to =
the=20
preview output allowing editors an more easy way to manage a list of folder=
s /=20
folder / page objects.
I've tried to use "renderShort" as a method and DTML method on the ZMSFolde=
r=20
object - without any change in the view output. Shure - i could change the=
=20
code of ZMS byself - but this is not an acceptable way for application=20
specific views...
For objects of type PAGEELEMENTs there is the "usual" (ugly) "hack"=20
<dtml-if "_.string.find(URL,'/manage')>=3D0">
<dtml-var "myobj.renderShort(REQUEST)">
<dtml-else>
<dtml-var "myobj.getBodyContent(REQUEST)">
</dtml-if>
but this by principle does not work with objects of the type PAGE as far as=
i=20
understand.
Any ideas or hints?
Many thanks in advance.
best regards,
Niels.
--=20
---
Niels Dettenbach
Syndicat IT & Internet
http://www.syndicat.com
PGP: https://syndicat.com/pub_key.asc
---
=20
--nextPart2940974.MOyPtFihCi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQIcBAABCAAGBQJTFwN0AAoJEM78prARigUnWNIP/jnlYAgwU90+s7IoEQ+AazaX
8FIzSbdg1+/HgQFZDdP2g2OW5TzrKHYxllDO/1kXxRyhYjJ/tiakgZd72rfMsOgJ
0r+QYzj1rdnpTNttc0DnBsArJwRPj4UJlZZ7ntdn+tstkahKHzUaK0zAFIkBs04U
fMfCWR4MoUCs/HoQQe/NTfmxoAvvELHW2S2NpwyEd3RmDOG7M4pcVJ6I+R/G/MZs
dHgFc6w9V8xj20/odOFTDOuBQmc5dHo2KU3H0yhYex7ffzjPo/h5TB+2VwFJiEqY
GrY3IfXr7CFK/H44zNx5A35+rjhQVXdCy4LJHpUL4SNwD92XF6i93lortfMbaKCt
qzdNA09pWDRY2oZyfhxZN5rLPculrwdHtxCf0M0rFFymdqVHTRduwvJZteUc4Keh
SxVk+BrxY2Vx7ms8zuI6tKPLhi63O+h6w05YzAjwKyyWsfrVDgHJCNjmi56BuTY0
iAxlwsz8+6bvIGVwn/TY78Icu84IJe/yUjWe90GgsXQaUsckHZnguiMOG1ODDp7w
4jAnCBobSq87qYy5I9BgJNoG+hrkaIgMVjRkOcYvON0EAcL3hGoSDlK4a9UqVQgz
JCt587KQUOmj4O30vaxW+/mudE6aihHDIphi3qXzpFRA6UU6M5/ShCAOvrnw5zzb
rIbqpDLSBy9XkCb+dv2G
=gsLT
-----END PGP SIGNATURE-----
--nextPart2940974.MOyPtFihCi--