This issue has been created
There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-cf11d247-eab4-47fe-b853-aeb7f6001589 XWIKI-22738 Open

Target syntax is not set on the transformation context when the document content is rendered

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-0293b6b5-936c-4d66-a414-7a17c50f6077 Marius Dumitru Florea created this issue on 19/Dec/24 15:42
 
Summary: Target syntax is not set on the transformation context when the document content is rendered
Issue Type: cid:jira-generated-image-avatar-cf11d247-eab4-47fe-b853-aeb7f6001589 Bug
Affects Versions: 15.10.15
Assignee: Unassigned
Components: Display
Created: 19/Dec/24 15:42
Priority: cid:jira-generated-image-static-major-70fa668a-179d-4af3-a639-c62724f055d7 Major
Reporter: Marius Dumitru Florea
Description:

This can be seen by implementing a wiki macro with this code:

{{velocity}}
$wikimacro.context.transformationContext.targetSyntax
{{/velocity}}

Insert this macro in the content of a wiki page and see the result in view mode: the target syntax is not set. This prevents the macro from producing different output depending on the target syntax, see https://www.xwiki.org/xwiki/bin/view/FAQ/How%20to%20write%20Macro%20code%20for%20the%20edit%20mode .

 
 

1 comment

 
cid:jira-generated-image-avatar-0293b6b5-936c-4d66-a414-7a17c50f6077 Marius Dumitru Florea on 19/Dec/24 15:52
 

See https://github.com/xwiki/xwiki-platform/pull/3774 .