How do I use dynamic content inside my content objects?

How do I use dynamic content (TAL, DTML, Python etc.) inside my content objects?

« Back to Table of Contents

You shouldn't. It's that simple. Really. :)

If you need a special view that pulls data from other locations into the content area, you should put that logic in a template, and not in the content objects.

There are a lot of good reasons to not mix content and logic, and Plone enforces this. If what you are looking for is to combine elements of different content (say, a document with a content listing), there are products that let you do this without necessarily creating your own templates. mxmDynamicPage, CMFCollection and CMFContentPanels are some examples - but shop around, there is a lot of development in this area, and this FAQ entry might be slightly outdated.

Do not use CMFDynamicDocument or AtDynDocument or any kind of tool that lets you put logic inside content. It is bad practice, destroys maintainability - and works directly in opposition to what content management is about.

by Jean-Paul Ladage last modified Dec 30, 2008 03:00 PM All content is copyright Plone Foundation and the individual contributors.

my last question :)

Posted by shahrzad khorrami at May 28, 2006 12:36 PM
hi, sorry :)

 I found that plone site is in portal_types ,and I found that variable,you said that for assigning a specail template just for my index_html page that don't show it in another pages what I do? index_html has a template and another folders have another template.
 THANKS @};-

dynamiv Views

Posted by Jean-Paul Ladage at May 28, 2006 02:04 PM
see http://plone.org/[…]/dynamic-views

This is what I meant.