
March 13th, 2008, 10:08 PM
|
|
Registered User
|
|
Join Date: Mar 2008
Posts: 1
Time spent in forums: 1 h 25 m 49 sec
Reputation Power: 0
|
|
|
REQUEST.resolve_url - please help
I am trying to script something that will tell me if a file exists - below works - except, I cannot pass the expression IDnumber value to the url string. Any help would be greatly appreciated. Thanks.
<dtml-call "REQUEST.set('IDnumber',43)">
<dtml-try>
<dtml-call "REQUEST.resolve_url('ADDRESS/<dtml-var IDnumber>.pdf')">
Object Found
<dtml-except>
<dtml-if expr="error_type=='Not Found'">
Object not found
</dtml-if>
</dtml-try>
|