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; = y459Dy829pM1
fwpStr_randomID: 12, -upperCase; = MXZTNBWNUTKB
fwpStr_randomID: 12, -withHyphensAt='3,8'; = 5R-Tvwo-JBgmjg
fwpStr_randomID: 12, -withHyphensAfter='3,8'; = oDJ-WeGHA-gBhe
fwpStr_randomID: 12, -withHyphensEach='3'; = x8P-FQ8-18E-xse
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-2010, pageblocks.org