Loading...
 
Skip to main content

Hotwords parsed/expanded with built-in macro {toc}, breaking HTML and links

Status
Open
Subject
Hotwords parsed/expanded with built-in macro {toc}, breaking HTML and links
Version
2.x
Category
  • Conflict of two features (each works well independently)
  • Usability
Feature
Hotword
Wiki Structure (book & table of content)
Resolution status
New
Submitted by
RandyH
Lastmod by
Philippe Cloutier
Rating
(0)
Description
Hotword processing needs to be turned off for the text expansion of the built-in macro toc:
Copy to clipboard
{toc}

If a page name in a structure has spaces, and a defined hotword appears as a name in the page, then the toc expansion is corrupted by the hotword processing. For example, if the page name in a structure is xxx yyy zzz ddd and zzz is a defined hotword, then the resulting link out of the toc expansion is the equivalent of:
Copy to clipboard
((xxx yyy zzz ddd|xxx yyy)) ((zzz)) ddd

Note how the trailing portion of the page name is not linked at all now.

This may apply to expanding the built-in macro maketoc, especially when aliases are shown, as well.

Verified on the opensourcecms.org installation as requested.

Solution
Escape the results of the toc built-in macro expansion to prevent hotword processing as it is, by definition, already processed for links.
Importance
6
Priority
30
Demonstrate Bug on Tiki 19+
Please demonstrate your bug on show2.tiki.org
Demonstrate Bug (older Tiki versions)
Ticket ID
2328
Created
Monday 23 February, 2009 19:25:39 UTC
by Unknown
LastModif
Thursday 13 September, 2018 17:25:52 UTC


Collapse/expand modules below
Show PHP error messages