Tracker fields textarea content wiki parsing doesn't work the same as wiki page content parsing when using a page as a Smarty template with the wiki Smarty block. For example consider we have a textarea field and this wiki syntax in the page named "User Profile TPL":
{wiki}{$f_358}{/wiki}
The code above indicates we want the field value to be wiki parsed using the Smarty wiki block.
This is the code to reproduce using PluginTrackerlist (I know it is not PluginList ;-) ... but the wiki parsing should behave everywhere in Tiki the same no matter what you prefer to use):
{trackerlist trackerId=38 list_mode=csv view=user wiki="User Profile TPL"}
The input:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In quis orci ante. Aliquam sit "amet libero" vitae turpis mattis eleifend. * meh 50% * 123 * blah blah Maecenas sodales felis sed magna cursus, eu ultrices metus scelerisque. Vivamus viverra ipsum aliquet commodo mollis.
The expected result:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In quis orci ante. Aliquam sit "amet libero" vitae turpis mattis eleifend.
Maecenas sodales felis sed magna cursus, eu ultrices metus scelerisque. Vivamus viverra ipsum aliquet commodo mollis.
The actual result:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In quis orci ante. Aliquam sit """"amet libero"""" vitae turpis mattis eleifend.
* meh 50
%* 123
* blah blah
Maecenas sodales felis sed magna cursus, eu ultrices metus scelerisque. Vivamus viverra ipsum aliquet commodo mollis.
Reproduced on the show instance: http://luci-199-7045.show.tikiwiki.org/
(use show:show as user:password and for admin login use admin:12345 to play with it)
{wiki}{$f_358|replace:"~np~%%%*~/np~":"\n*"|replace:"~np~%%%~/np~":"\n"|replace:'""""':'"'}{/wiki}
HHUE (Hopefully human understandable explanation):
For the wiki parsed field ($f_358) replace any occurrence of 3 percent signs (wiki syntax for a forced line break) immediately preceding an asterisk (which is the wiki syntax for un-ordered lists) with a newline character (so the list gets parsed correctly as it does parse only when the asterisk is at the beginning of line), then replace any remaining 3 percentage signs with newline character and finally replace these mysterious 4-times repeated double quotes with 1 double quote.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
The URL for the show.tikiwiki.org instance that demonstrates this bug is at: http://luci-199-7045.show.tikiwiki.org. Note that if you get a popup asking for a username/password, please just enter "show" and "show". This is different from the initial login and password for a new Tiki which is "admin" and "admin".
For the install log, see http://luci-199-7045.show.tikiwiki.org/info.txt
Note that if you see PHP errors or a Tiki claiming to be missing third party software, the instance creation is probably not finished. Please wait a couple minutes and reload.
Snapshots are database dumps of the configuration that developers can download for debugging. Once you have reproduced your bug on the show.tikiwiki.org instance, create a snapshot that can then be downloaded by developers for further investigation.
Snapshots can be accessed at: http://luci-199-7045.show.tikiwiki.org/snapshots/. Note that if you get a popup asking for a username/password, please just enter "show" and "show".
Create new snapshotfilename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |