Attachments Macro

Hi guys. I used attachment macro . I want to display the attachments of the page in a table. So I used the above mentioned macro. But the catch is I don’t want to display the image attachments in the table. Only the doc files. How do I do the programmatic filtering for the file type ?

Related to this: https://jira.xwiki.org/browse/XWIKI-14615?focusedCommentId=95947&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-95947

You could install http://extensions.xwiki.org/xwiki/bin/view/Extension/Attachments%20Macro and edit the macro page. You’ll find the script that generates the table. Then perform any filtering you wish.