The ability for a user to login and edit data via a repeater web part

Kentico User asked on December 14, 2016 16:10

Hi,

I have a secure area (page) in the CMS that only a certain role can access. That page has many sub pages. On one of the pages, there is going to be a repeater control that will display items for a page type. What we would like to do is, show the end user, a set of add, edit, delete controls on the page, so they can perform CRUD operations on that page type.

It appears that there is no way to do this. Turning a repeater into widget and updating these two settings This widget can be used in editor zones This widget can be used in user zones so that the repeater as a widget is now available to be added on the user/editor zones. Turning on Show New Buttons and Show Edit Buttons will not display the buttons on the page but they will be displayed in the admin area.

Is there no way to do what I want to do out of the box?

Is the only way for thd end user to have access in the admin area so they can only edit certain sections?

Thank you

Recent Answers


Zachary Perry answered on December 14, 2016 17:42

The show edit buttons on the repeater only work from the admin site. You might be able to customize this if you clone the webpart and make your changes.

An option is to use the user contribution webpart, but that would require your repeater to link to a page that has that webpart on it.

You could create a custom webpart based off the unigrid. This article might help on how to do it, or the documentation.

Another option would be to do it custom, maybe using ajax calls to update the pages.

1 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on December 14, 2016 20:11

You need to enable on-site editing in setting under Content -> Content management: Enable on-site editing and Enable on-site editing button.

Also make sure the role has appropriate permissions and UI personalization is configured for the role.

Show edit/delete/create setting have to be enabled in the repeater as well.

Another option, like Zachary mentioned, is user contribution web part.

2 votesVote for this answer Mark as a Correct answer

Kentico User answered on December 14, 2016 20:19

Thank you All. I did enable on-site editing and the role has appropriate permissions and UI personalization. We are going to go with the edit/delete settings on the repeater and stay away from custom development.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.