Simple question (again)
How to get the title and id of the current document ??? -- >> WinErr: 080 Clavier introuvable - Veuillez appuyer sur n'importe quelle touche pour continuer. << Arnaud LECAT >> Email: lecat@hexanet.fr >> WWW page:www.hexanet.fr/~lecat HEXANET >> http://www.hexanet.fr Z.A. Farman sud - 9 rue Roland Coffignot BP 415 - 51689 Reims Cedex 2 - France phone: (33) 03 26 79 30 05 Fax: (33) 03 26 79 30 06
Niet :) Because i'm in a Folder so I get the id of the folder not the id of the document !!! I think I must do an objectValue or something like that before. What I want to do is to compare the id of the current document with a list of document to see if it's in it :) Michael Bernstein wrote:
Arnaud Lecat wrote:
How to get the title and id of the current document ???
<untested>
<!--#var id--> <!--#var title_or_id-->
Or alternatively:
<dtml-var id> <dtml-var title_or_id>
</untested> :^)
HTH,
Michael Bernstein.
-- >> WinErr: 080 Clavier introuvable - Veuillez appuyer sur n'importe quelle touche pour continuer. << Arnaud LECAT >> Email: lecat@hexanet.fr >> WWW page:www.hexanet.fr/~lecat HEXANET >> http://www.hexanet.fr Z.A. Farman sud - 9 rue Roland Coffignot BP 415 - 51689 Reims Cedex 2 - France phone: (33) 03 26 79 30 05 Fax: (33) 03 26 79 30 06
When you say 'document', do you really mean 'DTML Method'? In a DTML *Document*, 'id' and 'title' refer to the document itself, while in a *Method* they refer to the client/caller/container (grr). You can use 'document_id' and 'document_title' to get what you want in both cases. Yes, I'm aware that these names are completely inconsistent with the distinction I just made :-) ----- Original Message ----- From: Arnaud Lecat <lecat@hexanet.fr>
Niet :) Because i'm in a Folder so I get the id of the folder not the id of the document !!!
How to get the title and id of the current document ???
Evan Simpson wrote:
When you say 'document', do you really mean 'DTML Method'? In a DTML *Document*, 'id' and 'title' refer to the document itself, while in a *Method* they refer to the client/caller/container (grr).
You can use 'document_id' and 'document_title' to get what you want in both cases.
If these work for both DTML Methods and DTML documents, does that mean that 'id' and 'title_or_id' are going to be deprecated? Michael Bernstein.
On Tue, 24 Aug 1999, Michael Bernstein wrote:
Evan Simpson wrote:
When you say 'document', do you really mean 'DTML Method'? In a DTML *Document*, 'id' and 'title' refer to the document itself, while in a *Method* they refer to the client/caller/container (grr).
You can use 'document_id' and 'document_title' to get what you want in both cases.
If these work for both DTML Methods and DTML documents, does that mean that 'id' and 'title_or_id' are going to be deprecated? Nope, I'd say, because id does have useful semantics too :) (It's not as if DTML Methods or DTML documents would get deprecated, right?)
Andreas -- Andreas Kostyrka | andreas@mtg.co.at phone: +43/1/7070750 | phone: +43/676/4091256 MTG Handelsges.m.b.H. | fax: +43/1/7065299 Raiffeisenstr. 16/9 | 2320 Zwoelfaxing AUSTRIA
Than use <!--#var document-id-->. @:O) Arnaud Lecat wrote:
Niet :) Because i'm in a Folder so I get the id of the folder not the id of the document !!!
I think I must do an objectValue or something like that before. What I want to do is to compare the id of the current document with a list of document to see if it's in it :)
Michael Bernstein wrote:
Arnaud Lecat wrote:
How to get the title and id of the current document ???
<untested>
<!--#var id--> <!--#var title_or_id-->
Or alternatively:
<dtml-var id> <dtml-var title_or_id>
</untested> :^)
HTH,
Michael Bernstein.
-- --------------------- Mauricio Souza Lima HiperLógica mauricio@hiper.com.br ---------------------
participants (5)
-
Andreas Kostyrka -
Arnaud Lecat -
Evan Simpson -
Mauricio -
Michael Bernstein