Sorry, I found right answer.
I should write
    #set ($attdoc = $xwiki.getDocument("Personal.TabelsDocs")) 



etvc wrote:
> 
> I need to get a list of attachments for some page (not current wiki-page).
> How it possible to do for current page - I know:
>     {{velocity}}
>     #set ($attdoc=$doc)
>     #foreach( $attachment in $attdoc.getAttachmentList() )
>     * [[$attachment.getFilename()>>attach:$attachment.getFilename()]]
>     \\
>     #end
> {{/velocity}}
> 
> This script works fine for current wiki-page. But when I tried to replace
>     #set ($attdoc=$doc)
> with
>     #set ($attdoc='Personal.Tabels2007')
> no any results. Personal.Tabels2007 - is a my space and wiki-document,
> where attachments exists.
> 
> Please help me for the syntax using in this situation.
> 

-- 
View this message in context: 
http://n2.nabble.com/Attachments-list-for-some-page-tp4090784p4090823.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to