[Zope-PTK] new to Zope/PTK- questions on fetching data
Bill Anderson
bill@libc.org
Tue, 20 Jun 2000 00:49:50 -0600
Sean Kelley wrote:
>
> How do you create displays of Links, etc in the PTK? Something like the
> "recent news" would be fine. I am looking at the recent_news dtml
> method and figure I can modifiy this for links, contributors, etc, but I
> don't get HOW to modify it.
> I see for example:
> <dtml-in "getCatalog().searchResults(meta_type='News Item',
> sort_on='Date', sort_order='reverse')" size="10" start="batch_start"
> previous>
>
> So I change the 'News Item' to 'Link' but, then there are references to
> to "class=" such as,
> <p class="NewsHeadline"><a href="<dtml-var
> "getCatalog().getpath(data_record_id_)">">
>
> Where do I find these values for different types of content like Links?
The class is a CSS class, as in Cascading StyleSheet. In PTK, this is
used to allow you to change the appearence of the site, such as fonts,
colors, etc. based upon themes.
> I am on the right track here in general?
>
> Also, what's up with the MEMBERS link/page? It says its not
> "batching"? Is this just and incomplete part of the PTK?
basically, Yes.