• Introduction
• Site Structure
• Page Assembly
• URL Handlers
• Multi-View Strings
• Authentication
• Database
• Error Handling
• Validation
• Config Data
• Logging
• EDP
• User Interface
•
• Images
• API Utilities
• Developer Tools
Tags:
fwpDate_12hrTimeTypes:
fwp_appStringsConfigs:
strings_appStrings_{language}A number of tags are provided to simplify output of dates and numbers in a variety of common formats. Additionally some string formatting tags not available in Lasso's current library such as retrieving a specified number of words, sentences and paragraphs, are provided.
The date and number tags are written with specific names to imply the preset formatting, and to eliminate having to remember parameters. For example, the date tags accept any valid Lasso date string. The fwpDate_mmShort4 tag will output in the format of Jan 01, 2003, and the fwpDate_euroSlash4 will ouput in the format of dd/mm/yyyy. The fwpDate_relative tag will output dates with relative names of Today, Yesterday, and Tomorrow and default to a specified format if the date is not one of the relative outputs.
The number tags fwpNum_int|dec1|dec2|dec3|dec4 will accept any number value and output them with whole number separators and decimal precision of 0, 1, 2, 3, 4 respectively. Sitewide configuration settings can determine the default punctuation use of periods and commas.
There are also tags for packing and unpacking North American phone numbers and American Social Security numbers. Packing these numbers stores the digits only in the database field. Unpacking phone numbers is possible in several predefined display formats such as AAA.PPP.NNNN xXXXXX or (AAA) PPP-NNNN xXXXXX.
These aren't big features, but they sure are handy.
© 2002-2012, pageblocks.org