[Zope-PTK] Re: [Zope] PTK issues
Bill Anderson
bill@libc.org
Fri, 03 Mar 2000 03:01:58 -0700
Nolan Darilek wrote:
>
> This was originally posted to zope@zope.org, but I'll post my question
> here since it's more relevant.
>
> >>>>> "Bill" == Bill Anderson <bill@libc.org> writes:
>
> >> Second, the main index_html includes the following:
> >>
> >> 5 Jan - Space for a NewsItem.
> >>
> >> So, am I supposed to edit that each time a new, newsworthy item
> >> is created by a member? I thought that, by approving news
> >> items, they would be displayed on the main page, or is this
> >> only on the "Breaking News" link?
>
> Bill> You can do like I do, and return the results of a ZCatalog
> Bill> search. Or you can do it the old fashioned way ;)
>
> Anyone have an example of how I might do this?
>
Here is a cop-paste form one of my sites. If you want to see it in
action,
http://www.libc.org/TheIgloo
========================================
<TR>
<TD WIDTH="1" ROWSPAN="2" BGCOLOR="<dtml-var SiteColor>"><IMG
SRC="Images/spacer.gif" ALT="Spacing image" WIDTH="1" HEIGHT="2"
BORDER="0"></TD>
<TD VALIGN="TOP" CLASS="righttitle"><H2 CLASS="righttitle"><dtml-var
"getPortal().title"> News</TD>
</TR>
<TR>
<TD VALIGN="TOP">
<P CLASS="right">
<dtml-in "getCatalog().searchResults(meta_type='News Item',
sort_on='Date', sort_order='reverse')" size="3" start="batch_start">
<a href="<dtml-var "getCatalog().getpath(data_record_id_)">">
&dtml-title; </a></br>
</dtml-in> </P>
<p class="right">
<a href= recent_news>More</a> news ...
</p>
</TD>
</TR>
======================
Should help. :)
--
In flying I have learned that carelessness and overconfidence are
usually far more dangerous than deliberately accepted risks.
-- Wilbur Wright in a letter to his father, September 1900