Re: name of file
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45965
interpreted = N
texte = There is also the [listpath] context...[listpath fileonly=T&path=[thisurl]][name][/listpath]> -----Original Message-----> From: WebCatalog Talk > [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf> Of Kenneth Grome> Sent: Wednesday, December 04, 2002 3:05 AM> To: WebCatalog Talk> Subject: Re: name of file> > > >>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 Center> 175 J. Llorente Street +63 (32) 255-6921> Cebu City, Cebu 6000 kengrome@webdna.net> Philippines 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/-------------------------------------------------------------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:
There is also the [listpath] context...[listpath fileonly=T&path=[thisurl]][name][/listpath]> -----Original Message-----> From: WebCatalog Talk > [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf> Of Kenneth Grome> Sent: Wednesday, December 04, 2002 3:05 AM> To: WebCatalog Talk> Subject: Re: name of file> > > >>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 Center> 175 J. Llorente Street +63 (32) 255-6921> Cebu City, Cebu 6000 kengrome@webdna.net> Philippines 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/-------------------------------------------------------------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/
Scott Anderson
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:
WebDNA-Talk Digest mode broken (1997)
How do I specify a & character in Grep? (2000)
OK, here goes... (1997)
cart (1997)
Cart Transfer from Un-Secure to Secure (2000)
Paths (1998)
WebDNA 5 & iTools 7 (2003)
Location of Webcat site in folder hierarchy (1997)
Showif date > other date (2004)
WebCat2: Items xx to xx shown, etc. (1997)
WebCat2: Items xx to xx shown, etc. (1997)
[OT] - Messed up me user permissions - help ! (2004)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
Location of Browser Info.txt file (1997)
Limit to variables being passed??? (1998)
HELP WITH DATES (1997)
RE: question on [delete] (1998)
RE: Webcatalog and CyberSTUD (1998)
Browser Caching (2003)