Macros for Viewing Office Docs do not work Correctly on Comments
症状
Using the viewfile macros (viewdoc, viewxls, viewppt) on a comment will give an error message when saved:
viewxls: The viewfile macro is unable to locate the attachment "example.xls" on this page
原因
The markup created by the Macro Browser is only valid when used in pages or blogs, not in comments. See CONF-16935 for further information.
ソリューション
In Confluence 3.5 or earlier
Change the markup:
{viewdoc:name=example.xls}
to include the page name:
{viewdoc:page=<PAGE-TITLE>|name=example.xls}
In Confluence 4.0 or later
- In the comment editor, click 'Insert More Content'
- In the drop down click 'Insert Wiki Markup'
Enter the wiki markup syntax for the viewfile macro:
{viewdoc:page=<PAGE-TITLE>|name=example.xls}
The workaround does not work for PDF's.
最終更新日: 2015 年 10 月 7 日
Powered by Confluence and Scroll Viewport.