[replaceChars] would be nice ...

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14017
interpreted = N
texte = I've been trying to create a new admin function that allows me to close the specific databases while leaving the others open.Apparently this is impossible, because the [name] tag inside the [listdatabases] context uses colons (:) for the folder separators in its path names. But the [closedatabase] tag only recognizes URL-style path names which use slashes.What would be *really useful* here would be a new character formatting context that replaces matching character strings with something else. I think it would look something like this:[replaceChars find=:&replaceWith=/]folder:subfolder:sub-subfolder:databasefile.db[/replacetext ]which would result in:folder/subfolder/sub-subfolder/databasefile.dbThen the URL-style-only path format of the [closedatabase] tag would no longer be a problem, and we would also have a great new text formatting tool to use for 'other' purposes! Sincerely, Ken Grome WebDNA Solutions 808-737-6499 Associated Messages, from the most recent to the oldest:

    
I've been trying to create a new admin function that allows me to close the specific databases while leaving the others open.Apparently this is impossible, because the [name] tag inside the [listdatabases] context uses colons (:) for the folder separators in its path names. But the [closedatabase] tag only recognizes URL-style path names which use slashes.What would be *really useful* here would be a new character formatting context that replaces matching character strings with something else. I think it would look something like this:[replaceChars find=:&replaceWith=/]folder:subfolder:sub-subfolder:databasefile.db[/replacetext ]which would result in:folder/subfolder/sub-subfolder/databasefile.dbThen the URL-style-only path format of the [closedatabase] tag would no longer be a problem, and we would also have a great new text formatting tool to use for 'other' purposes! Sincerely, Ken Grome WebDNA Solutions 808-737-6499 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:

Mac OS X Server & WebCat (2003) Autoreturn Submit? (1997) Practice runs ? (1997) Any problems with Welcome & WebCat? (2000) M$loth messes with our sites (again) 2004/02/03 (2004) Error:Too many nested [xxx] contexts (1997) simple answer? [hideif] (1997) taxrate - off by 1 cent (1997) BW in a search (2007) Linux uninstall / reinstall (2003) Link with [cart] in db field (1999) Help! WebCat2 bug (1997) Quickie question on the email templates (1997) Associative lookup style? + bit more (1997) calculating tax rates, mail order solutions and version 2 (1997) can WC render sites out? (1997) Re:2nd WebCatalog2 Feature Request (1996) 4.5.1 on Panther? (2004) Emailer compatibility..... (1998) [WebDNA] WebDNA 7.x on Red Hat Enterprise Linux 5 and Apache 2.2 (2013)