Sun, 21 Oct 2001 16:37:44 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0071_01C15A4E.B5D2E210
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi!
I'm a newcomer to the Zope community, and discovered
this powerful application just two weeks ago. Just a brief
look at the documentation and features convinced me
that this was the right choice for building a dynamic webpage.
Starting to comprehend the functionality of Zope, I've run
into some obstacles I was hoping someone could help me with.
#1
I've created a product for news-articles that have a property
sheet with properties such as date, author, title and content.
The constructor-form let's you fill in the entire property sheet,
but once you've filled out the blanks, I want Zope to store the
product in the folder "news/yy-mm/" (year-month that is) no
matter where the product was added. How do i achieve this?
<dtml-with "Nyhet.createInObjectManager(REQUEST['id'], REQUEST)">
<dtml-call =
"propertysheets.psNyhetsartikkel.manage_editProperties(REQUEST)">
<dtml-call reindex_obect>
</dtml-with>
#2
As good as every news article will have a number of images
displayed in it, and I'm wondering how I best can associate
an image with the article. If I've understood correctly, I could let=20
the newsarticle-class inherit the Object Manager property and=20
contain the images, but is this a good approach?=20
Thanks in advance,
Oystein W. Hoie
------=_NextPart_000_0071_01C15A4E.B5D2E210
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi!<BR><BR>I'm a newcomer to the Zope =
community,=20
and discovered</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this powerful application just two =
weeks ago. Just=20
a brief</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>look at the documentation and features =
convinced=20
me</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>that this was the right choice for =
building a=20
dynamic webpage.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Starting to comprehend the =
functionality of Zope,=20
I've run</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>into some obstacles I was hoping =
someone could help=20
me with.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>#1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've created a product for =
news-articles that have=20
a property</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>sheet with properties such as date, =
author, title=20
and content.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The constructor-form let's you fill in =
the entire=20
property sheet,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>but once you've filled out the blanks, =
I want Zope=20
to store the</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>product in the folder "news/yy-mm/" =
(year-month=20
that is) no</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>matter where the product was =
added. How do i=20
achieve this?</FONT></DIV>
<DIV><FONT size=3D2>
<P><dtml-with "Nyhet.createInObjectManager(REQUEST['id'],=20
REQUEST)"><BR> <dtml-call=20
"propertysheets.psNyhetsartikkel.manage_editProperties(REQUEST)"><BR>&=
nbsp; =20
<dtml-call reindex_obect><BR></dtml-with></P>
<P><FONT face=3DArial> #2<BR>As good as every news article will =
have a number=20
of images<BR>displayed in it, and I'm wondering how I best can=20
associate<BR>an image with the article. </FONT><FONT face=3DArial>If =
I've=20
understood correctly, I could let <BR></FONT><FONT face=3DArial>the =
newsarticle-class inherit the </FONT><FONT =
face=3DArial>Object Manager=20
property and <BR>contain the images, but is this a </FONT><FONT =
face=3DArial>good=20
approach? </FONT></P>
<P><FONT face=3DArial>Thanks in advance,<BR>Oystein W.=20
Hoie</FONT></P></FONT></DIV></BODY></HTML>
------=_NextPart_000_0071_01C15A4E.B5D2E210--