Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > User can't edit, delete document with user contributions View modes: 
User avatar
Member
Member
hungquang_itsyad-yahoo.com - 10/9/2012 10:18:46 PM
   
User can't edit, delete document with user contributions
Hi all, this is my source code:

<%@ Register Src="~/CMSWebParts/UserContributions/ContributionList.ascx" TagName="ContributionList" TagPrefix="uc1"%>
<%@ Register Src="~/CMSWebParts/UserContributions/EditContribution.ascx" TagName="EditContribution" TagPrefix="uc2"%>
<%@ Register Src="~/CMSWebParts/Viewers/Documents/cmsrepeater.ascx" TagName="cmsrepeater" TagPrefix="uc3"%>



<uc3:cmsrepeater runat="server" ID="repeaterNews" ClassNames="CMS.News" TransformationName="CMS.News.preview" SelectedItemTransformationName="CMS.News.default"/>

<uc1:ContributionList runat="server" ID="ContributionList" AllowedChildClasses="CMS.News" DisplayList="false" AllowUsers="Authenticated" ShowForDocumentTypes="CMS.MenuItem" CheckPermissions="false"/>

<uc2:EditContribution runat="server" ID="EditContribution" ShowForDocumentTypes="CMS.News" AllowUsers="DocumentOwner" AllowDelete="true" />


If I'm an adminstrator, everything is good. But when I create new user, user only create new document, can't edit, delete.

How do i do that?
Thank!

User avatar
Kentico Support
Kentico Support
kentico_radekm - 10/10/2012 6:21:10 AM
   
RE:User can't edit, delete document with user contributions
Hello.

I guess you create documents of some particular document type via User contributions web part, is that correct? If so, could you please check document type permissions according to http://devnet.kentico.com/docs/devguide/document_type_permissions.htm? It is possible that these users don't have required permissions assigned.

Best Regards,
Radek Macalik

User avatar
Member
Member
hungquang_itsyad-yahoo.com - 10/10/2012 9:54:09 PM
   
RE:User can't edit, delete document with user contributions
Thank you, I can do it.

Have any web part to manage the articles that user has posted: as the table shows the serial number, the name of the article, the edit button, delete ... ?



User avatar
Kentico Support
Kentico Support
kentico_radekm - 10/23/2012 5:26:27 AM
   
RE:User can't edit, delete document with user contributions
Hello.

Currently, we don’t have such a web part showing uploaded documents per user. You would need to use some workaround, for example:

A. Extend a document type of your document by custom field and store some user-related info within, like userID or so. Then, use Repeater with custom query to get data relevant for users per their userID. It could done with standard Repeater web part with proper where condition as well.

B. You can create a document structure representing particular users and use existing Wiki module and its web part with proper path expression.

Best Regards,
Radek Macalik