Technical References - [boldwords]

Highlights matching words with boldface HTML tags.

numero = 262
interpreted = N
texte = [boldwords WordList]Any Text[/boldwords] To automatically boldface matching words in portions of a template, put a BoldWords context around the text. Any words inside the context found to match words in the WordList will automatically be surrounded by the HTML <B></B> tags so they appear bold in the page. Example:
[boldwords words=Grant,John]John and Grant helped write this product.John's cats are displayed on his personal web page.[/boldwords]
Anywhere the words Grant or John appear in the contained text, they are wrapped with <B>Grant</B> or <B>John</B>, respectively. You may use any [xxx] tags in the WordList or the container, as in [boldwords [name]]Please embolden this [name][/boldwords]. All [xxx] tags inside the context are first substituted for their real values, then WebDNA searches for and boldfaces the matching words. This context is handy for helping visitors easily see what they are searching for in a database. In the following example, the visitor has previously typed some text into a search form with a <input name="wodescriptiondata"> form variable. The [foundItems] will loop through all the matching records in the database, and words matching the search text will be displayed boldface in the [description] field.
[founditems][boldwords words=[wodescriptiondata]][description][/boldwords][/founditems]

A maximum of 50 words is allowed in the WordList. 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.

[boldwords WordList]Any Text[/boldwords]

To automatically boldface matching words in portions of a template, put a BoldWords context around the text. Any words inside the context found to match words in the WordList will automatically be surrounded by the HTML <B></B> tags so they appear bold in the page.

Example:

[boldwords words=Grant,John]
John and Grant helped write this product.
John's cats are displayed on his personal web page.
[/boldwords]

Anywhere the words Grant or John appear in the contained text, they are wrapped with <B>Grant</B> or <B>John</B>, respectively. You may use any [xxx] tags in the WordList or the container, as in [boldwords [name]]Please embolden this [name][/boldwords]. All [xxx] tags inside the context are first substituted for their real values, then WebDNA searches for and boldfaces the matching words.

This context is handy for helping visitors easily see what they are searching for in a database. In the following example, the visitor has previously typed some text into a search form with a <input name="wodescriptiondata"> form variable. The [founditems] will loop through all the matching records in the database, and words matching the search text will be displayed boldface in the [description] field.

[founditems]
[boldwords words=[wodescriptiondata]][description][/boldwords]
[/founditems]

A maximum of 50 words is allowed in the WordList. 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.


DOWNLOAD WEBDNA NOW!

Top Articles:

Tips and Tricks

A list of user-submitted tips ...

F.A.Q

A compilation of some user's questions...

Download WebDNA Applications

WebDNA applications...

WebDNA reference

...

WebDNA Libraries

A list of available libraries for WebDNA...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:

Implement BioType

Here is the JavaScript code that captures the keystroke dynamics of a demo user and how to make WebDNA analyze it...

[SQL]

Performs a SQL statement on an ODBC data source...

[deletefile]

Deleting a file from your website...

[session]

[session] is a new WebDNA feature that recognises a browser through its "fingerprint"...

[convertchars]

[url]...

[cart]

Putting [cart] in your template automatically creates a unique shopping cart...