Mailing List Archive

[Zope-PTK] Re: [Zope] PTK issues
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?

Also, I have another question. If anyone could point me to any basic
DTML-coding tutorials (if any exist) I'd be helped greatly, since I'm
not afraid of R'ing TFM, so to speak. :) My site is similar, in a
sense, to zope.org. What I'd like to do is to grant users personal
workspaces under members/, in which they can edit news items, etc. I'd
also like to create projects/, which hold pages similar to those under
members/, but which allow any number of users to edit them. It's
basically a sourceforge-ish setup in that I can register a project and
receive a folder beneath projects/. From there, I can then grant write
privilages to any number of existing users. How difficult might
something like this be to implement?

One final implementation question. Is it possible to plug pre-existing
products into a PTK site? What I mean is, could I plug any of the
existing chat/web discussion products into a portal and allow it to
use the user's login name and such, instead of prompting for a
separate login? I'm interested in using the PTK as a means of enabling
certain services for some, while serving as a means of content
management for others. In other words, when someone logs in, I'd like
for links to discussion boards and chat areas to appear, and I'd also
like for them to have access to their folder beneath members/, uniting
the authentification processes for both mechanisms into the single
portal login. Is implementation of this difficult, or is it a given?

Thanks.
Re: [Zope-PTK] Re: [Zope] PTK issues [ In reply to ]
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">
&nbsp;<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
Re: [Zope-PTK] Re: [Zope] PTK issues [ In reply to ]
----- Original Message -----
From: "Nolan Darilek" <nolan_d@bigfoot.com>
To: <zope-ptk@zope.org>
Sent: Friday, March 03, 2000 1:16 AM
Subject: [Zope-PTK] Re: [Zope] PTK issues


> >> 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?

I believe there is an Advanced ZCatalog searching how-to that's worth
checking out (http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching).
You can specify a range of datetimes to show only the most recent articles.
For KM|Net News, I made the articles have a "top" property that determines
if it is a top story, making for a really simple search. (I may release
KM|Net News 1.1 today which will be easier to get running, because it
configures its own Catalog).

> Also, I have another question. If anyone could point me to any basic
> DTML-coding tutorials (if any exist) I'd be helped greatly, since I'm
> not afraid of R'ing TFM, so to speak. :) My site is similar, in a
> sense, to zope.org. What I'd like to do is to grant users personal
> workspaces under members/, in which they can edit news items, etc. I'd
> also like to create projects/, which hold pages similar to those under
> members/, but which allow any number of users to edit them. It's
> basically a sourceforge-ish setup in that I can register a project and
> receive a folder beneath projects/. From there, I can then grant write
> privilages to any number of existing users. How difficult might
> something like this be to implement?

I believe this is straightforward using local roles. Here's a how-to on
that:
http://www.zope.org/Members/anthony/owner_role

Zope security is quite flexible, so you should be able to find a mechanism
that will work for you.

> One final implementation question. Is it possible to plug pre-existing
> products into a PTK site? What I mean is, could I plug any of the
> existing chat/web discussion products into a portal and allow it to
> use the user's login name and such, instead of prompting for a
> separate login?

When LoginManager is ready for prime time, this will be possible.
LoginManager will be a separate Product that is usable without the rest of
the PTK.

Kevin