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

  1. In the comment editor, click 'Insert More Content'
  2. In the drop down click 'Insert Wiki Markup'
  3. 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.