How do I make a page where you can edit a price list in back office
Hi
I'm going to make a page for a hairdresser. she has a page with prices and there i want to in back office make a page where you can enter a new price, edit old prices etc ..
I've tried to figure out how to do it in back office, but I can't find the solution to it. Must be sections, or a surface controller. Where do I find a guide to understand: D
You could take a look at Fluidity which gives you a custom section for editing database tables. So each price could be a record in the table and you will be able to add and edit the rows in the table.
Video showing you how to get started with Fluidity here:
Next you can read those values from the database and render them on the front end.
I would have a surface controller with an action with something like GetPrices()
The result of that action would be to return a partial view showing the prices, and if you use donut caching, the result of this call can be cached so you don't need to keep querying the database and preparing the partial view.
How do I make a page where you can edit a price list in back office
Hi I'm going to make a page for a hairdresser. she has a page with prices and there i want to in back office make a page where you can enter a new price, edit old prices etc .. I've tried to figure out how to do it in back office, but I can't find the solution to it. Must be sections, or a surface controller. Where do I find a guide to understand: D
Hi Mikkel
You could take a look at Fluidity which gives you a custom section for editing database tables. So each price could be a record in the table and you will be able to add and edit the rows in the table.
Video showing you how to get started with Fluidity here:
https://www.youtube.com/watch?v=bihFOjLfdTk
Next you can read those values from the database and render them on the front end.
I would have a surface controller with an action with something like GetPrices()
The result of that action would be to return a partial view showing the prices, and if you use donut caching, the result of this call can be cached so you don't need to keep querying the database and preparing the partial view.
Video on donut caching here:
https://www.youtube.com/watch?v=e4wOJHYltfU
is working on a reply...