1 Jul 2005 01:06
Re: SV: ZPT as content type
On Thu, 2005-06-30 at 11:25, Kim L. Jacobsen wrote: > Thanks - I tried it and it worked as expected.> > I guess with this solution you would need to have a content type for > each page with dynamic content. If you have a lot of dynamic content, > this would probably be a little messy. As there seems not to be a > general solution to this, I think I'll make one, if I'm able to (reading > about Archetypes right now). It seems it should be possible to make at > content type, which handles this. > It is quite easy to make from the link type. Just make a new type as described in the plonebook (but based on the link type). After having customized and renamed link_view, you change the code so that it renders zpt, instead of displaying a link. When you use it, you insert the relative link to the zpt in the edit form. In this way, you can make zpts on your zope instance visible in Plone. Flemming Bjerke ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
>
> I guess with this solution you would need to have a content type for
> each page with dynamic content. If you have a lot of dynamic content,
> this would probably be a little messy. As there seems not to be a
> general solution to this, I think I'll make one, if I'm able to (reading
> about Archetypes right now). It seems it should be possible to make at
> content type, which handles this.
>
It is quite easy to make from the link type. Just make a new type as
described in the plonebook (but based on the link type). After having
customized and renamed link_view, you change the code so that it renders
zpt, instead of displaying a link. When you use it, you insert the
relative link to the zpt in the edit form. In this way, you can make
zpts on your zope instance visible in Plone.
Flemming Bjerke
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast.
RSS Feed