[Zope] Display Plone Topic in body of page

J. Cameron Cooper jccooper at jcameroncooper.com
Mon Dec 1 22:05:30 EST 2003


Rod Thorburn wrote:

>My aim is to show a list of links to recently added content, such as news
>items, pdf's, msword docs etc. on my sites home page. However, I do not want
>every recently added content item listed, only selected content. 
>
>In my limited experience it occurs to me that a Plone 'Topic' is the correct
>tool to employ. Therefore, I've created a Topic called 'update' which
>searches on the keyword (added to selected content items) 'update'. The
>Topic works fine when logged into Plone and clicking on the topic name to
>view all the links it collects. However, I want to show the result of the
>Topic in the body of my index_html page to all anonymous users.
>
>I am not sure if I should do this using Plone's edit page tool,
>
Do you mean editing it through the "item view"? This won't work. See 
below...

>or by using
>ZMI to edit the template 'index_html' itself. I get the impression that it
>could be done either way, but I'd appreciate any advice on best practice in
>this regard.
>  
>
By default index_html is content (a Document) and thus you cannot add 
programmatic features to it. You can get rid it and create a new Page 
Template called 'index_html' in its place, and from there you can do the 
work. But you will lose the ability to treat it as content. (You can, 
though, include in the ZPT the contents of some other Document if you 
care.) Depending on whether you consider the front page content or 
"look" you could place this in your custom skins folder.

>An actual code example would be very appreciated as I am new to
>Plone/Zope/TAL and Python.
>
Probably the best place to look for an example is the template that 
renders the page you're trying to emulate. Look in 'portal_skins' for it.

>NOTICE: The information contained in this electronic mail message and any
>attachments is confidential to Pavilion Technologies, Inc. or one of its
>subsidiaries and may contain proprietary information or be legally...
>
If you can turn this off, I suggest doing so. It's both annoying and 
irrelevant. Especially for a public list.

          --jcc

-- 
"My point and period will be throughly wrought,
Or well or ill, as this day's battle's fought."





More information about the Zope mailing list