Loading...
 
Skip to main content

Create new wikiplugin PARSE to specify if the content should be parsed or not

Status
Open
Subject
Create new wikiplugin PARSE to specify if the content should be parsed or not
Version
12.x
14.x
9.x
20.x
Category
  • Feature request
Feature
Wiki Plugin (extends basic syntax)
Resolution status
New
Submitted by
luci
Lastmod by
luci
Rating
(1)
Description

I have stumbled upon a problem when a feature (especially Hotwords) is enabled it creates lot of issues incorrectly parsing the content of Wiki pages and other parts of Tiki where wiki or smarty syntax is involved resulting in links inside rendered HTML attributes or WSODs. So here is my wish:

It would be super useful to have a plugin which would prevent some enabled features auto-parsing or allow parsing of its body depending on params, something like:

The next example would prevent (ignore) parsing of the Hotwords and CamelCase WikiWords in the plugin body.

Copy to clipboard
{PARSE(ignore="feature_hotwords:feature_wikiwords")} I am a ((Hotword|Hot word)) and I don't want to be double-parsed. CamelCase is WikiWord? Yes! __I am bold__ and I am not. {DIV()}I am a div.{DIV} {PARSE}


The next example would allow only parsing of Wiki syntax and WikiWords and nothing else in the plugin body.

Copy to clipboard
{PARSE(only="wiki_syntax:feature_wikiwords")} I am a ((Hotword|Hot word)) and I don't want to be double-parsed. CamelCase is WikiWord? Yes! __I am bold__ and I am not. {DIV()}I am a div.{DIV} {PARSE}


Other candidates for the "ignore" and "only" params:
feature_wiki_allowhtml
feature_autolinks
feature_wiki_argvariable
feature_wiki_paragraph_formatting
smarty_syntax
wiki_plugins (meaning all wiki plugins)
wikiplugin_div (meaning specified wikiplugin)
etc.

I think it would be useful also for the LTS versions.

Anybody takes the challenge ?

Importance
8
Easy to solve?
3
Priority
24
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5059
Created
Thursday 12 December, 2013 20:48:48 UTC
by luci
LastModif
Thursday 31 January, 2019 14:35:25 UTC


Show PHP error messages