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