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

[email protected] wrote:
> We have several objects that share parts of their schemata. (In our local 
> terminology we call them "modules" because users were confusing them with 
> portlets.) The tal for these modules is the same for every object.  (For 
> example there's a multimedia block that displays videos, flickr photosets, 
> and images.) That tal has gotten to about 200 lines and resides in five or 
> six different template files. I'm looking for a way to not have to copy-paste 
> the tal into each template any time it changes.
> 
> One thought I had would be to use a viewlet, but I'm not sure if that's the 
> best solution, or even what steps I should take to make the viewlet aware of 
> the context of the content object (or at least the fields I need) being 
> viewed.
> 
> 

Use viewlets or METAL macros.

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

iEYEARECAAYFAkvmUlQACgkQCJIWIbr9KYyy/gCgqJ9/L7t9J8IBYUjtUHYyuB74
0eoAoKlfSKWq6mtDIsozu7sRbZ0FRR7g
=5+Cu
-----END PGP SIGNATURE-----

<<attachment: lists.vcf>>

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

Reply via email to