This simple tag creates strings where a fixed length string with a fixed prefix and variable suffix is needed. For example, if we wanted customer order numbers for 2004 to be be prefixed with CS04, and we wanted all numbers to be eight digits long, we could start with a mask of CS04-00000000 and overlay the current order number of 1248 to give us CS04-00001248.
fwpStr_randomID: 12; = 9jVufqYs5wE7
fwpStr_randomID: 12, -upperCase; = GRGGRGJNS2YS
fwpStr_randomID: 12, -withHyphensAt='3,8'; = 6Y-SE2x-L4Y5RX
fwpStr_randomID: 12, -withHyphensAfter='3,8'; = ykW-WJf2D-gheK
fwpStr_randomID: 12, -withHyphensEach='3'; = 2bs-b87-oJv-R4U
This page shows the result of using a few of the get string tags (getRight, getLeft, getWords, getSentences, getParagraphs) on this text. Left shows a simple selection of the leftmost N characters. Left Smart shows the same N chars maximum with an intelligent cutoff at the end of a whole word. Words shows the selection of a specific number of words (even if it crosses a sentence boundary).
Sentences shows the selection of a specific number of sentences. A -squish parameter suppresses paragraph breaks.
The Paragraphs section show the selection of a specified number of paragraphs. In all cases specifiying more than the maximum available content will result in returning all content.
Right (50): able content will result in returning all content.
Left (50): This page shows the result of using a few of the g
Left Smart (50): This page shows the result of using a few of the
Words (25): This page shows the result of using a few of the get string tags (getRight, getLeft, getWords, getSentences, getParagraphs) on this text. Left shows a
Sentences (4, -squish):
This page shows the result of using a few of the get string tags (getRight, getLeft, getWords, getSentences, getParagraphs) on this text. Left shows a simple selection of the leftmost N characters. Left Smart shows the same N chars maximum with an intelligent cutoff at the end of a whole word. Words shows the selection of a specific number of words (even if it crosses a sentence boundary). Sentences shows the selection of a specific number of sentences.
Paragraphs (2):
This page shows the result of using a few of the get string tags (getRight, getLeft, getWords, getSentences, getParagraphs) on this text. Left shows a simple selection of the leftmost N characters. Left Smart shows the same N chars maximum with an intelligent cutoff at the end of a whole word. Words shows the selection of a specific number of words (even if it crosses a sentence boundary).
Sentences shows the selection of a specific number of sentences. A -squish parameter suppresses paragraph breaks.
© 2002-2012, pageblocks.org