kannan chandrasekaran wrote:
Hi,
I am bit new to DNN. One of the main reasons we choose DNN is because of the front end content editing. ie on the edit mode, we can directly change the content if the user is having enough rights through edit this page option.
We have some similar requirement for editing the label of the custom module. IE if I have a form and some form fields with labels, then if I am having rights to edit then I should be able to change the Label.
We are using SPA module. After I play around with the DNN I understood this feature is available only in the HTML module and not for the form Labels. Are there any simple solutions available? or any plugins available to achieve this functionality
Thanks
Kannan
Hey Kannan:
It's actually a feature built using javascript, but you can create pretty much the same thing, especially if you're using the spa template. Just go to a search engine and do a search on 'jquery simple text quick edit' and you will find a jquery plugin that will give you the client-side code for this. Add some kind of button or link to 'save' the text if the plugin doesn't come with it (I think it does, but...) Then create an ajax call to the webapi 2 service, passing in the changed text, when the button is pressed.
It's probably easier to do the above, than to hunt through the mountains of dnn javascript code looking for a similar function...
Update. Yup, it's called 'jeditable' and you can see it at work here:
http://www.appelsiini.net/projects/jeditable/custom.html
Hope that helps...