Re: name of file
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45963
interpreted = N
texte = >>Is there an easy way to get the name of the file into the webDNA of >>the file ?>>>>[thisurl] shows the whole path like :>> lxir/demos/c-lvl/admin/structure-show.tmpl>>where I'd like to have only>> structure-show.tmpl>>as a result.>>>I put this at the top of every page:>>[listwords words=[thisurl]&delimiters=/][text >secure=T]thisPage=[word][/text][/listwords]>>... then I can use [thisPage] anywhere on the same page, and it >gives me just the file name.By the way, you can *try* to do something similar with [fileinfo] but it will fail in a cross-platform environment. That's why I have settled on the [listwords] solution -- it seems to work all the time, on all platforms.:)Sincerely,Kenneth Grome---------------------------------------------------WebDNA Professional Training and Development Center175 J. Llorente Street +63 (32) 255-6921Cebu City, Cebu 6000 kengrome@webdna.netPhilippines http://www.webdna.net----------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>>Is there an easy way to get the name of the file into the webDNA of >>the file ?>>>>[thisurl] shows the whole path like :>> lxir/demos/c-lvl/admin/structure-show.tmpl>>where I'd like to have only>> structure-show.tmpl>>as a result.>>>I put this at the top of every page:>>[listwords words=[thisurl]&delimiters=/][text >secure=T]thisPage=[word][/text][/listwords]>>... then I can use [thisPage] anywhere on the same page, and it >gives me just the file name.By the way, you can *try* to do something similar with [fileinfo] but it will fail in a cross-platform environment. That's why I have settled on the [listwords] solution -- it seems to work all the time, on all platforms.:)Sincerely,Kenneth Grome---------------------------------------------------WebDNA Professional Training and Development Center175 J. Llorente Street +63 (32) 255-6921Cebu City, Cebu 6000 kengrome@webdna.netPhilippines http://www.webdna.net----------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Using [Showif] tag. Mac (1997)
OS X Line Endings HELL [solved] (2003)
Can GMT be called from the OS ? (2004)
OT: Web Cams (2003)
Slightly OT web* and Web Cat crashes (2000)
Hard Questions ? (1997)
Authorize.net? (2003)
CERT Advisory on malicious scripts (2000)
FAX orders (1996)
[TaxableTotal] - not working with AOL and IE (1997)
Download URL & access on the fly ? (1997)
WebCat2b13MacPlugIn - [include] (1997)
authenticating a second user (1997)
Verifying and adding new users (1997)
WebCatalog & Mac OS X (client) vs. Redhat Linux (2001)
Secure server question (1997)
ImageMagick on OSX (2003)
WC2.0 Memory Requirements (1997)
Q: writefile and uploads. (1998)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)