[Zope-CMF] Want folder view, get recursion.
Tres Seaver
tseaver@digicool.com
Tue, 01 May 2001 06:28:50 -0400
Ignacio Valdes wrote:
>
> Hello all,
>
> I've got my project review site on my ISP now and am in the
> final configuration of it. I want to have everyone start with
> 'Folder View' not the standard welcome. To that end, I added
> <dtml-var folder_contents> to index.html. It comes up in folder
> alright, but it recurses the whole page like in a frame. How
< can I remove this unwanted effect? You can see what I'm talking
> about here:
> http://www.linuxmednews.com/linuxmednews/LMNProjectsResources
>
> -- IV
>
> My index.html looks like this:
>
> <dtml-var standard_html_header>
>
> <table cellpadding="0" cellspacing="0" width="100%">
> <tr>
> <td valign="top" width="80%">
>
> <h1> Welcome to &dtml-title; </h1>
>
> <dtml-var folder_contents>
>
> </td>
> <td valign="top" width="20%">
> <dtml-var news_box>
> </td>
> </tr>
> </table>
'folder_contents' is its own "page-level" method, and hence
includes 'standard_html_header' and footer already. You could
"customize" it (e.g., from 'portal_skins/generic' into
'portal_skins/custom'), to read:
<dtml-var standard_html_header>
<dtml-var folder_contents_main>
<dtml-var standard_html_footer>
Put the current code for 'folder_contents' in the new method,
'folder_contents_main'. You will then be able to include the
new method on member pages.
Tres.
--
===============================================================
Tres Seaver tseaver@digicool.com
Digital Creations "Zope Dealers" http://www.zope.org