Site structure
Version 7.x > Site structure > Multiple Authors for a document View modes: 
User avatar
Member
Member
ap - 12/3/2012 1:57:07 PM
   
Multiple Authors for a document
hello.
When I create a document in the tree, the author is found under
Properties -> General -> Created by: Global Administrator

what i would like to do is have multiple authors for a single document, how is this achievable? should i used custom tables and use a multiple choice input field?

thank you.

User avatar
Member
Member
kentico_davidb2 - 12/5/2012 2:49:34 AM
   
RE:Multiple Authors for a document
Hello,
I would go for Multiple user selector document field. You will then be able to edit your authors on the Form tab in CMD Desk Edit mode.

Dave

User avatar
Member
Member
ap - 12/13/2012 11:58:17 AM
   
RE:Multiple Authors for a document
thanks for the idea.
i noticed that in my custom document type, the field value saved when i select a user is the username delimited by ;

my question is when using a transformation to display the selected users, how can i display the fullname of each user instead of the username?

thank you.
AP.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/13/2012 2:04:10 PM
   
RE:Multiple Authors for a document
Hello,

Could you please post the transformation you are using, so I will be able to take a more detailed look at it? Thank you.

Best regards,
Martin Danko

User avatar
Member
Member
ap - 12/13/2012 3:28:13 PM
   
RE:Multiple Authors for a document
Actually, the transformation right now just uses EVAL("Authors") to get back the data in the Authors column. my issue is how to split the usernames contained within and get the fullname for each username.

thanks.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/14/2012 5:22:07 AM
   
RE:Multiple Authors for a document
Hi,

And are you using the ASCX or Text/XML transformation?

Best regards,
Martin Danko

User avatar
Member
Member
ap - 12/14/2012 9:00:04 AM
   
RE:Multiple Authors for a document
Sorry I left that out. I'm using ASCX transformations.

thanks.

User avatar
Member
Member
ap - 12/19/2012 1:07:18 PM
   
RE:Multiple Authors for a document
Hello. Any ideas yet?
Thanks.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/20/2012 7:57:47 AM
   
RE:Multiple Authors for a document
Hi,

you can use something like this in your transformation:
// create a field of authors
authors_field = Authors.Split(';') // or Eval("Authors").Split(';')
...
// get every author from the field
foreach(author in authors_field) { your code .. author }

I hope you will get the point :)

Best regards,
Martin Danko

User avatar
Member
Member
lwhittemore-emh - 5/28/2013 9:14:41 AM
   
RE:Multiple Authors for a document
I am trying to add multiple owners to a document so that I can have different people be able to edit using the community edit controls.

Please note I do not know ASPX at all. I am hoping that this is something that I could easily do.

Thanks

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 6/2/2013 4:43:32 AM
   
RE:Multiple Authors for a document
Hello,

Unfortunately, this scenario is not supported in some very easy way without any programming skills. You can consider the use of User contributions module or
set a specific role permissions to the users.

Best regards,
Martin Danko