Confluence 3.1 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
Modifying the template file in confluence-attachments-plugin-x.x.jar (in this case, I try on confluence-attachments-plugin-2.10.jar). Please edit attachmentsmacro.vm file. This file is located in confluence-attachments-plugin-2.10.jar file. Extract this file by using the Editing files within .jar archives guide guide.
If you are able to extract it successfully, you can locate to attachmentsmacro.vm file and find the following lines:
<td><a name="$generalUtil.urlEncode($page.title)-attachment-$generalUtil.urlEncode($attachment.fileName)">#parse ("/pages/includes/attachment_icon.vm")</a> <a href="$req.contextPath$attachment.downloadPathWithoutVersion">$attachment.fileName</a></td>
and change the above code to be:
<td><a name="$generalUtil.urlEncode($page.title)-attachment-$generalUtil.urlEncode($attachment.fileName)">#parse ("/pages/includes/attachment_icon.vm")</a> <a target="_blank" href="$req.contextPath$attachment.downloadPathWithoutVersion">$attachment.fileName</a></td>
After making changes, please repack the file by following the steps here.
Additional Information
深刻度 |
中 |
|---|---|
正規表現 |
attachments in a new tab |
Article ID |
CONFKB214862216 |
Unknown macro: {htmlcomment}
概要
コンテンツ ツール
アプリ
