Hi all, I was wondering if there is a way to add an attachment directly from a comment... I looked into the commentsinline.vm and attachmentsinline.vm, but I don't really find a way to modify those files to have something similar to what I need. Basically I want let users comment on a document and give them the possibility to attach a file in their comments... did anyone do something similar? Thanks! Vito
Hi Vito, If I understand correctly you'd like that anonymous users (or users who don't have edit rights at least) are able to add attachments? Right now attachments are added using the attachment UI. Of course you could modify the comments vm file to add the same ui. What's important though is that the user doing the attachment has the permission to do so or it'll fail. Right now there's no attachment right AFAIK. The logic is that attaching something modifies the document and can even overwrites the existing attachments with new versions. -Vincent On Oct 26, 2007, at 8:06 AM, Vitantonio Messa wrote:
Hi all,
I was wondering if there is a way to add an attachment directly from a comment... I looked into the commentsinline.vm and attachmentsinline.vm, but I don't really find a way to modify those files to have something similar to what I need.
Basically I want let users comment on a document and give them the possibility to attach a file in their comments... did anyone do something similar? Thanks!
Vito
Hi Vincent, of course users that are going to attach files will have editing rights on those pages. What I want to do is give to an user the possibility to add a comments on a page and at the same time add a document on that comment. The difficult is that I don't know how to "mix together" comment and attachment... Vito Vincent Massol wrote:
Hi Vito,
If I understand correctly you'd like that anonymous users (or users who don't have edit rights at least) are able to add attachments?
Right now attachments are added using the attachment UI. Of course you could modify the comments vm file to add the same ui. What's important though is that the user doing the attachment has the permission to do so or it'll fail. Right now there's no attachment right AFAIK. The logic is that attaching something modifies the document and can even overwrites the existing attachments with new versions.
-Vincent
On Oct 26, 2007, at 8:06 AM, Vitantonio Messa wrote:
Hi all,
I was wondering if there is a way to add an attachment directly from a comment... I looked into the commentsinline.vm and attachmentsinline.vm, but I don't really find a way to modify those files to have something similar to what I need.
Basically I want let users comment on a document and give them the possibility to attach a file in their comments... did anyone do something similar? Thanks!
Vito
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Vito, You can create an 'add attachment' button which appears after the 'add comment' button is pressed... Harikrishnan Vitantonio Messa wrote:
Hi Vincent,
of course users that are going to attach files will have editing rights on those pages. What I want to do is give to an user the possibility to add a comments on a page and at the same time add a document on that comment.
The difficult is that I don't know how to "mix together" comment and attachment...
Vito
Vincent Massol wrote:
Hi Vito,
If I understand correctly you'd like that anonymous users (or users who don't have edit rights at least) are able to add attachments?
Right now attachments are added using the attachment UI. Of course you could modify the comments vm file to add the same ui. What's important though is that the user doing the attachment has the permission to do so or it'll fail. Right now there's no attachment right AFAIK. The logic is that attaching something modifies the document and can even overwrites the existing attachments with new versions.
-Vincent
On Oct 26, 2007, at 8:06 AM, Vitantonio Messa wrote:
Hi all,
I was wondering if there is a way to add an attachment directly from a comment... I looked into the commentsinline.vm and attachmentsinline.vm, but I don't really find a way to modify those files to have something similar to what I need.
Basically I want let users comment on a document and give them the possibility to attach a file in their comments... did anyone do something similar? Thanks!
Vito
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://www.nabble.com/Attachments---comments-tf4695367.html#a13439792 Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Harikrishnan, the real problem I'm facing is how to link together comments and attachments: because when loading one page I should be able to retrieve the comment with the corresponding attachment. Vito V. Harikrishnan Nair wrote:
Hi Vito,
You can create an 'add attachment' button which appears after the 'add comment' button is pressed...
Harikrishnan
Vitantonio Messa wrote:
Hi Vincent,
of course users that are going to attach files will have editing rights on those pages. What I want to do is give to an user the possibility to add a comments on a page and at the same time add a document on that comment.
The difficult is that I don't know how to "mix together" comment and attachment...
Vito
Vincent Massol wrote:
Hi Vito,
If I understand correctly you'd like that anonymous users (or users who don't have edit rights at least) are able to add attachments?
Right now attachments are added using the attachment UI. Of course you could modify the comments vm file to add the same ui. What's important though is that the user doing the attachment has the permission to do so or it'll fail. Right now there's no attachment right AFAIK. The logic is that attaching something modifies the document and can even overwrites the existing attachments with new versions.
-Vincent
On Oct 26, 2007, at 8:06 AM, Vitantonio Messa wrote:
Hi all,
I was wondering if there is a way to add an attachment directly from a comment... I looked into the commentsinline.vm and attachmentsinline.vm, but I don't really find a way to modify those files to have something similar to what I need.
Basically I want let users comment on a document and give them the possibility to attach a file in their comments... did anyone do something similar? Thanks!
Vito
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Vitantonio Messa wrote:
the real problem I'm facing is how to link together comments and attachments: because when loading one page I should be able to retrieve the comment with the corresponding attachment.
you mean, like a pointer ? The attachment has a name (an identification), so can't there be a link to that attachment ? -- View this message in context: http://www.nabble.com/Attachments---comments-tf4695367.html#a13467074 Sent from the XWiki- Users mailing list archive at Nabble.com.
V. Harikrishnan Nair wrote:
Vitantonio Messa wrote:
the real problem I'm facing is how to link together comments and attachments: because when loading one page I should be able to retrieve the comment with the corresponding attachment.
you mean, like a pointer ? The attachment has a name (an identification), so can't there be a link to that attachment ?
Exactly: the attachment as ad identification (its URL), still is not possible (well, I don't know how) to associate that URL with a comment. The real problem is that I want normal users add comments with attachments, in an easy way, without having to enter the URL of the attachment...
There can be sequence numbers to the attachments placed (like 1. ABC.jpg, 2. XYZ.gif , ...) and when comments are added the user can point to that attachment using [ sequence no ] i.e. for say, ABC.jpg, there it can be pointed to using [1.] in the comment... or something like that. Vitantonio Messa wrote:
V. Harikrishnan Nair wrote:
Vitantonio Messa wrote:
the real problem I'm facing is how to link together comments and attachments: because when loading one page I should be able to retrieve the comment with the corresponding attachment.
you mean, like a pointer ? The attachment has a name (an identification), so can't there be a link to that attachment ?
Exactly: the attachment as ad identification (its URL), still is not possible (well, I don't know how) to associate that URL with a comment.
The real problem is that I want normal users add comments with attachments, in an easy way, without having to enter the URL of the attachment... _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- View this message in context: http://www.nabble.com/Attachments---comments-tf4695367.html#a13482182 Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
V. Harikrishnan Nair -
Vincent Massol -
Vitantonio Messa