+ 3
Allow Admin to change text
Hello. I am a beginner to programming and I am trying to build a website. I am using asp.net and mvc. How can I allow an admin to change text or pictures on a website. The admin can currently only upload to a gallery. Iâm running in circles with trying to figure out how to do this. Thank you in advance.
2 Answers
+ 5
Lee practically these things are handled at the backend.
I don't know much and will have to try this myself but
you can create a separate admin login, and they can have the write access to the database which is used in generating the website content, so they will be able to do post Operations and update the database .
how you handle the editing on client side is up to you, many ways to do so .
I might be wrong though and there would be better alternatives, I would love to hear them myself.
+ 2
Just in case anyone else has a similar issue. I have found that using <contenteditable> in the div allows me to edit text from the page. I am now working on limiting that to the admin. I still havenât figured out how to allow the user to change the image.