Site structure
Version 7.x > Site structure > Auto fill field document type View modes: 
User avatar
Member
Member
wessel.peeters-ibl-software - 9/12/2013 4:32:02 AM
   
Auto fill field document type
Hello,
I'm pretty new to KenticoCMS.
KenticoCMS will be the program that i'll have to use making a customerportal in my last year of college.

I am trying to make a contributionlist with the option; if you add a new document that has a field named "user" is auto fills this field with te username currently login in.

I see the option in the Site Manager Documents->Fields->User selector butt i can't see the value in it.

Hope somebody can help me out.

Greetings

User avatar
Member
Member
kentico_sandroj - 9/12/2013 2:49:16 PM
   
RE:Auto fill field document type
Hello,

This is possible by adding a context macro as the default value for the document type field under Site Manager > Development > Document Types > [edit]YourDocType > Fields.

This is the default macro to get the current username:

{%CurrentUser.UserName%}

Please let me know if you have any questions.

Best Regards,
Sandro

User avatar
Member
Member
wessel.peeters-ibl-software - 9/16/2013 3:39:49 AM
   
RE:Auto fill field document type
Thank you Sandro for your straight forward solution.
One other think butt i think it belongs to a new topic.
How to create categories in Document Libary's ?

Thank you so far for your help.

Best Regards,
wessel

User avatar
Member
Member
kentico_sandroj - 9/17/2013 3:24:18 PM
   
RE:Auto fill field document type
Hello,

Adding categories to the Document Library would not possible without heavy customization; instead, you could use the User Contribution Web part and add the categories as described in this discussion. Would this approach work for you?

Best Regards,
Sandro

User avatar
Member
Member
wessel.peeters-ibl-software - 10/9/2013 1:49:35 AM
   
RE:Auto fill field document type
Hello Sandro,

Thank you for your help. Im still busy creating the documentation for my project. After that i will start trying to accomplish it with your url submission , i will let you know how things turns out.

Greetings,
Wessel