[xwiki-users] new attach page
hi, if i want to create a new page that contains all the attachments from a space, do i have to create velocity pages .vm equivalent to the normal attachments page? these pages from what i can tell are used for the attach part of the page: docextra.vm, attachments.vm, attachmentsinline.vm, editattachments.vm so .. my question is: to create a page where to see all the attachments of the space.do i have to create vm pages: allattach.vm, allattachments.vm, allattachmentsinline.vm, editallattachments.etc? cause this way seems long and confuzing.mistakes are easy to make. what is your oppinion on this manner? thank you -- View this message in context: http://www.nabble.com/new-attach-page-tp18355148p18355148.html Sent from the XWiki- Users mailing list archive at Nabble.com.
hi, You should probably better create a wiki page that uses the same code as what you have in the attachments templates. If this code includes HTML and JS you should protect it from wiki syntax using {pre} {/pre} Ludovic Nohinder wrote:
hi, if i want to create a new page that contains all the attachments from a space, do i have to create velocity pages .vm equivalent to the normal attachments page? these pages from what i can tell are used for the attach part of the page: docextra.vm, attachments.vm, attachmentsinline.vm, editattachments.vm so .. my question is: to create a page where to see all the attachments of the space.do i have to create vm pages: allattach.vm, allattachments.vm, allattachmentsinline.vm, editallattachments.etc? cause this way seems long and confuzing.mistakes are easy to make. what is your oppinion on this manner? thank you
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
Nohinder wrote:
hi, if i want to create a new page that contains all the attachments from a space, do i have to create velocity pages .vm equivalent to the normal attachments page? these pages from what i can tell are used for the attach part of the page: docextra.vm, attachments.vm, attachmentsinline.vm, editattachments.vm so .. my question is: to create a page where to see all the attachments of the space.do i have to create vm pages: allattach.vm, allattachments.vm, allattachmentsinline.vm, editallattachments.etc? cause this way seems long and confuzing.mistakes are easy to make. what is your oppinion on this manner? thank you
i found the solution. just create a page in XWiki.MyPage in which you include a velocity file(that contains your code) #template("code.vm") -- View this message in context: http://www.nabble.com/new-attach-page-tp18355148p18367158.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, [snip]
i found the solution. just create a page in XWiki.MyPage in which you include a velocity file(that contains your code) #template("code.vm")
You could as well have put the velocity code right on your wiki page ;-) Velocity code is interpreted on wiki pages, so there's basically very little difference between using #template() and putting the code right into the page. Guillaume
participants (3)
-
Guillaume Lerouge -
Ludovic Dubost -
Nohinder