Tracker fields textarea content wiki parsing doesn't work the same as wiki page content parsing
- Status
- Open
- Subject
- Tracker fields textarea content wiki parsing doesn't work the same as wiki page content parsing
- Version
- 18.x
19.x
20.x - Category
- Conflict of two features (each works well independently)
- Consistency
- Usability
- Feature
- Templates (Smarty)
Trackers
Wiki Syntax (text area, parser, external wiki, etc) - Resolution status
- New
- Submitted by
- luci
- Keep informed
- Jonny Bradley, Marc Laporte
- Lastmod by
- luci
- Rating
- Description
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":
Copy to clipboard{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):
Copy to clipboard{trackerlist trackerId=38 list_mode=csv view=user wiki="User Profile TPL"}
The input:Copy to clipboardLorem 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.
- meh 50%
- 123
- blah blah
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)- Workaround
{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.- Importance
- 7
- Easy to solve?
- 1 difficult
- Priority
- 7
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 7045
- Created
- Monday 18 March, 2019 19:10:42 UTC
by luci - LastModif
- Monday 18 March, 2019 20:01:33 UTC