Fw: [Zope] sos - help is needed in asap!!!

Elena Solomou eleni@simplyadvanced.net
Mon, 5 Nov 2001 12:37:51 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C165F6.AF10AB70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


> > Dear Zope organization,
> >
> > My name is Eleni and it is my first time that I am writing to you =
for
> > help.  I have registered as a member but I didn't succeded to =
contact
> > with someone.  I am writing to you for giving an answer to my =
question
> > that nobody can give me. Well, I will explain the nature of my =
problem
> > with
> > DTML-doc and properties.
> > 1.I have created a folder (main).
> > 2.Inside in this folder I created another subfolders.
> > 3.I have written a code in a dtml-document in main folder
> > to give a sortID (string) property in each subfolder.
> > 4.Whenever I execute my DTML-DOC code it shows all the values
> > of sortIDs that it has assigned in each subfolder.
> > 5.I want to take all sortIDs values e.g. sortID=3D111,
> > sortID=3D112, ...etc to be assigned in the properties of
> > main folder in the field of mainNavigationLinks - lines.
> > Can you give me possible solutions to my step 5 problem pls???
> > Your help will be further appreciated!
> >
>=20
> Usually you would run something like that:
>=20
> <dtml-in expr=3D"main.objectValues('folder')" sort=3D"sortID">
>    <a href=3D"&dtml-absolute_url;"><dtml-var title_or_id></a><br>
> </dtml-in>
>=20
> Hint: you dont need to double the list of links into a property
> on your mainfolder.
> Hint2: you dont need this extra sortID. Subobjects have a natural =
order.
> Although the ZMI shows them sorted on Id, title, size and so on,
> they have the order in which they are added. If you cut&paste
> an object into the same folder, it is automatically at the end of the
> list.
>=20
> Regards
> Tino Wildenhain


Dear Tino,

I used the above code 2 weeks ago.  Pls, wait to understand what I want: =
 Firstly, I need this sortID because my users want to sort/index the =
rest of items using the FIRST, UP, DOWN & LAST BUTTONS (it was done by =
javascript with DTML on single folder and worked and I want to apply it =
on multiple folders).=20
The what I want is a coding that stores all sortIDs values from all =
subfolders to be stored in another field of the main folder called =
mainNavigationLinks - (lines and no string in order to store all sortIDs =
values there) situated in the properties of the main folder. Therefore I =
will able to use the first, up, down, last buttons coding to manipulate =
the stored values.  If sth is unclear or it seems complicate to you pls =
let me know.

Love from Elena.

ps. I see all sortIDs and their description on the output-VIEW of my =
DTML-doc situated in main folder but I want to store/capture them!!!




------=_NextPart_000_000A_01C165F6.AF10AB70
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><BR><FONT face=3DArial size=3D2>&gt; &gt; Dear Zope =
organization,<BR>&gt;=20
&gt;<BR>&gt; &gt; My name is Eleni and it is my first time that I am =
writing to=20
you for<BR>&gt; &gt; help.&nbsp; I have registered as a member but I =
didn't=20
succeded to contact<BR>&gt; &gt; with someone.&nbsp; I am writing to you =
for=20
giving an answer to my question<BR>&gt; &gt; that nobody can give me. =
Well, I=20
will explain the nature of my problem<BR>&gt; &gt; with<BR>&gt; &gt; =
DTML-doc=20
and properties.<BR>&gt; &gt; 1.I have created a folder (main).<BR>&gt; =
&gt;=20
2.Inside in this folder I created another subfolders.<BR>&gt; &gt; 3.I =
have=20
written a code in a dtml-document in main folder<BR>&gt; &gt; to give a =
sortID=20
(string) property in each subfolder.<BR>&gt; &gt; 4.Whenever I execute =
my=20
DTML-DOC code it shows all the values<BR>&gt; &gt; of sortIDs that it =
has=20
assigned in each subfolder.<BR>&gt; &gt; 5.I want to take all sortIDs =
values=20
e.g. sortID=3D111,<BR>&gt; &gt; sortID=3D112, ...etc to be assigned in =
the=20
properties of<BR>&gt; &gt; main folder in the field of =
mainNavigationLinks -=20
lines.<BR>&gt; &gt; Can you give me possible solutions to my step 5 =
problem=20
pls???<BR>&gt; &gt; Your help will be further appreciated!<BR>&gt; =
&gt;<BR>&gt;=20
<BR>&gt; Usually you would run something like that:<BR>&gt; <BR>&gt; =
&lt;dtml-in=20
expr=3D"main.objectValues('folder')" sort=3D"sortID"&gt;<BR>&gt; =
&nbsp;&nbsp; &lt;a=20
href=3D"&amp;dtml-absolute_url;"&gt;&lt;dtml-var=20
title_or_id&gt;&lt;/a&gt;&lt;br&gt;<BR>&gt; &lt;/dtml-in&gt;<BR>&gt; =
<BR>&gt;=20
Hint: you dont need to double the list of links into a property<BR>&gt; =
on your=20
mainfolder.<BR>&gt; Hint2: you dont need this extra sortID. Subobjects =
have a=20
natural order.<BR>&gt; Although the ZMI shows them sorted on Id, title, =
size and=20
so on,<BR>&gt; they have the order in which they are added. If you=20
cut&amp;paste<BR>&gt; an object into the same folder, it is =
automatically at the=20
end of the<BR>&gt; list.<BR>&gt; <BR>&gt; Regards<BR>&gt; Tino=20
Wildenhain</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Dear Tino,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I used the above code 2 weeks =
ago.&nbsp; Pls, wait=20
to understand what I want:&nbsp; Firstly, I need this <STRONG><U><FONT=20
color=3D#0000ff>sortID</FONT></U></STRONG> because my users want to =
sort/index the=20
rest of items&nbsp;using the&nbsp;<FONT size=3D3><STRONG>FIRST, UP, DOWN =
&amp;=20
LAST BUTTONS (it was done by javascript with DTML&nbsp;on single folder =
and=20
worked and I want to apply it on multiple=20
folders).&nbsp;</STRONG></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT size=3D2>The what I want is a =
coding=20
that&nbsp;stores all <STRONG>sortIDs values</STRONG>&nbsp;from all =
subfolders to=20
be stored in <U>another field</U> of the <U>main folder&nbsp;called=20
mainNavigationLinks</U> - (lines and no string in order to store all=20
sortIDs&nbsp;values there)&nbsp;situated in the properties of =
the&nbsp;main=20
folder. Therefore I will able to use the first, up, down, last buttons=20
coding&nbsp;to manipulate the stored values.&nbsp; If sth is unclear or =
it seems=20
complicate to you pls let me know.</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Love from Elena.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ps. I see all sortIDs and their =
description on the=20
output-VIEW of my DTML-doc situated in main folder but I want to =
store/capture=20
them!!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000A_01C165F6.AF10AB70--