Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.3-milestone-2
-
None
-
High
-
Trivial
-
N/A
-
N/A
-
Description
XWIKI-12718 introduced a parameter to output the page title along with its content. The problem is that sometimes the title is displayed even if we don't ask for it.
The root problem is that the rendercontent.vm defines a "local" $displayTitle variable to "cache" the value of the $request.outputTitle parameter. This variable can be overwritten by mistake when the page content is rendered.
This can easily be reproduce with the Blog Application. Put this in a page:
{{blogPostLayoutImage reference="Blog.BlogIntroduction" /}}
and then open that page in view mode with ?xpage=plain. The output should include only the blog post but it actually also includes the page title because the blogPostLayoutImage macro overwrites the $displayTitle variable.
Attachments
Issue Links
- is related to
-
XWIKI-12718 Introduce a parameter for "xpage=plain" to display the title along with the plain content
- Closed
- relates to
-
BLOG-194 Random content is added after the BlogPostList macro when used from the wysiwyg editor
- Open
-
CKEDITOR-478 Switching to / from Source mode could include unexpected content
- Closed
-
XWIKI-20012 Switching to / from Source mode while in WYSIWYG editor could include unexpected content
- Closed