Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • mikkel 97 posts 279 karma points
    Jan 05, 2019 @ 08:15
    mikkel
    0

    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

  • Paul Seal from codeshare.co.uk 332 posts 1689 karma points MVP c-trib
    Jan 07, 2019 @ 15:29
    Paul Seal from codeshare.co.uk
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft