On Thu, Oct 18, 2012 at 10:26 AM, Eugen Colesnicov
<[email protected]> wrote:
> Hello!
>

> In a livetable existing possibility to show attachments of listed documents,
> but published extention  Add Preview Links
> <http://extensions.xwiki.org/xwiki/bin/view/Extension/Add+Preview+Links>
> doesn't work in this situation (no preview links).

This is because the extension enhances the attachment links found on
page load while the live table rows are fetched afterwards. In order
to fix this:
* the extension needs to listen to xwiki:dom:updated event
* the live table (or you) needs to fire xwiki:dom:updated after
updating its rows

>
> Is it possible to extend functionality of this extention? Or maybe it will
> be good addition in a livetable functionality ...

Note that generating the preview link is easy. See
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-web/src/main/webapp/templates/attachmentslist.vm#L43
. You don't need the extension. So anther solution for you is to
customize the live table results to:
* either generate a preview link for office document attachments
(instead of download link)
* or extend the actions column with a Preview action

Hope this helps,
Marius

>
> Thanks beforehand!
> Eugen Colesnicov
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Add-preview-Links-to-office-documents-in-the-attachment-list-tp7581876.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to