The & was replaced in both cases, but for convertchars it was replaced with & instead of literally %26Ĭonvertchars treats the "to" value of "%26" as the character "&", and the "from" value of "%2526" as "%26" (after unurling %25 to %)Ĭonvertwords treated "%26" literally as "%26", so it did not find and replace the & characterĬonvertchars treats the "to" value of "+" as the SPACE character, so all spaces were replaced with %2526, unurled to %2B, and the "+" character was not replacedĬonvertwords treated the to and from as entered, replacing "+" with, literally, "%2526"Ĭonvertchars treats the "to" value of "%2B" as the "+" character, so "+" was replaced with %2526, unurled to %2B, and spaces were not replacedĬonvertwords found no literal "%2B" strings to replace convertwords, I spent time working out these examples.ĬHARS: L John & Joanna + Jane For example "" gets a formvariable named "user name" with a value of "Jane Doe". The + to SPACE mapping is a bit more esoteric, but I would bet the internal WebDNA program uses (or maybe "used") the same block of code for interpreting query parameters in a URL - the stuff after the ? - where spaces are mapped to + characters by the browser. The UNURLing of TO and FROM allows specification of invisible characters that you may need to strip out of or add to a data source. does two relevant things differently from :ġ) automatically UNURLs the TO and FROM fields in the table, so "%26" is treated as an "&" character rather than the literal "%26"Ģ) treats a "+" in the TO field as a space Replacing a multiple character string with one or more other characters, then is the tool of choice. is excellent for replacing one character with one or multiple characters. New Red ShoesĬleanfilename= copyĪ conversion database can be called anything and located anywhere,īut must have these two specified fields: FROM and TOUsing this example WebDNA table named convert it is possible to convert the word "café" to "cafe"Ĭafé copy Results:ĬafeSome handy uses for include removing foul language from online message boards, spelling out acronyms, changing nicknames to full names, inserting hyperlinks, and expanding glossary terms. secondary use is to clean data before inserting into a database, or 'cleaning' a file name when uploading and ensuring that it does not have any 'illegal' characters. Some Text That Contains Upper - And Lower Case LettersĪ Of On At The In OrYou can use this context to display user-entered text (such as first and last names) so they look more consistent, regardless of how the user typed them. This is my 1st time at batĪ of on at the in or copy Results: Some Text that contains upper - and lower case letters No attempt is made to be grammatically correct - articles such as "a, an, of" are capitalized just like any other word. If the word begins with a numeral, the numeral is left unchanged, and the rest of the letters will become lowercase. If the remaining letters in the word are uppercase, they will be changed to lowercase. Only the first letter of each word (any letter following a space) is capitalized. To convert the words of a sentence to capitalized form, put them inside a context. You can put as many words as you like inside the context, and all occurrences of matching words will be bolded, but the list of words to look for is limited to 50. ]Ī maximum of 50 words is allowed in the wordlist. The will loop through all the matching records in the database, and words matching the search text will be displayed boldface in the field. In the following example, the visitor has previously typed some text into a search form with a form variable. This context is handy for helping visitors easily see what they are searching for in a database. All tags inside the context are first substituted for their real values, then WebDNA searches for and boldfaces the matching words. You may use any tags in the wordlist or the container, as in ]Please embolden this. John's cats are displayed on his personal web page.Anywhere the words Grant or John appear in the contained text, they are wrapped with Grant or John, respectively. John's cats are displayed on his personal web page. Any words inside the context found to match words in the wordlist will automatically be wrapped by the html tags so they appear bold on the page. To automatically boldface matching words in portions of a template, put a context around the text.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |