Need to Get Object From it's ID
Hi I have several DTML Documents I want to include it's contents into another DTML Method How do I get it's contents if I only know it's ID?? <dtml-var id> returns string value for id <dtml-var "id"> returns <Python Method object at 864c500> So, stupid question. HOW do I get the real document contents??? Please reply to mailto:scoff@i.am Thanks
<dtml-var id> returns string value for id
This should work if 'id' is what appears in the management view, etc... What do you mean by string value?
<dtml-var "id"> returns <Python Method object at 864c500> Hmm, are you sure you're not trying to include python methods rather than DTML documents or DTML methods?
Try: <dtml-var "id()"> if there's not another reason why this isn't working...
Please reply to mailto:scoff@i.am This is rude... If you want the list to help, don't ask for personal replies, subscribe to the list and share the knowledge ;-)
cheers, Chris
* Eugene Saltykov | HOW do I get the real document contents??? Provided that ID contains a string representation of the id of the document you want, this should do it: <dtml-var "_[id]"> I hope I understood what you wanted to do, this may very well be solving the wrong problem. Thomas
participants (3)
-
Chris Withers -
Eugene Saltykov -
Thomas Stenhaug