stdWrap Extended
Copyright © by Maximilian Kalus <info@auxnet.de>Published under the Open Content License available from http://www.opencontent.org/opl.shtml
Table Of Contents
- 1. EXT: stdWrap Extended
- 1.1. Introduction
- 1.2. Users manual
- 1.3. Administration
- 1.4. Configuration
- 1.5. listnum = rand
- 1.6. numberFormat (TYPO3 v4.4 and lower)
- 1.7. Search and Replace
- Simple search and replace
- Search and replace using cObjects
- Delete text
- Search and replace using regular expressions
- Multiple Search and Replace
- You can search and replace multiple entries by using multisplit. Multisplit defines a split character (or string) for multiple search and replacements. It can be used with nocase, but is not compatible with regular expressions (regexp will take precedence). An easy example:
- Alternative multiple Search and Replace
- 1.8. Padding
- 1.9. String positions
- strpos Example
- Find the first occurrence of a substring within a string.
- strrpos Example
- Find the last occurrence of a substring within a string.
- strpos Example with Offset
- You can also define an offset to strpos and strrpos.
- Example using stdWrap
- The needle can also be a cObject.
- Example using substring function and strpos
- The strpos and strrpos functions are best used with other functions such as substring:
- lib.sampleText = TEXT
- lib.sampleText.value = Hello *World*!
- lib.sampleText.substring.cObject = COA
- lib.sampleText.substring.cObject {
- 1 = TEXT
- 1.value < lib.sampleText.value
- 1.stdWrap.stdWrap.strpos = 1
- 1.stdWrap.stdWrap.strpos.needle = *
- 1.stdWrap.wrap = |+1
- 1.prioriCalc = 1
- 2 = TEXT
- 2.value = ,
- 3 = TEXT
- 3.value < lib.sampleText.value
- 3.stdWrap.cObject = COA
- 3.stdWrap.cObject {
- 1 = TEXT
- 1.value < lib.sampleText.value
- 1.strrpos = 1
- 1.strrpos.needle = *
- 2 = TEXT
- 2.value = -
- 3 = TEXT
- 3.value < lib.sampleText.value
- 3.strpos = 1
- 3.strpos.needle = *
- 4 = TEXT
- 4.value = -1
- }
- 3.prioriCalc = 1
- }
- Yes, it is quite complicated, but works perfectly.
- 1.10. More wraps...
- 1.11. Known problems
- 1.12. To-Do list
- 1.13. ChangeLog
This document is related to version 0.3.1 of the extension mak_stdwrapextended.