Copied to clipboard

Flag this post as spam?

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


  • Tom Jones 19 posts 150 karma points
    Dec 10, 2023 @ 13:58
    Tom Jones
    1

    Build method for custom tools page

    I've got a basic blogging site and I want to add a separate page containing a few tools I use regularly, mainly so I don't have to go all over the web to find them each time (or have a load of bookmarks).

    The tools will mostly be string manipulation or conversion type things which are quick and easy to use, such as trimming whitespace, capitalisation, removing special chars, unit converters etc., relatively simple stuff to code in C#.

    In a regular MVC app I'd probably just create a view and controller with an endpoint for each tool.

    Should I do something similar with Umbraco, or is there a more Umbraco-like way to build/organise this?

  • Brendan Rice 538 posts 1102 karma points
    Dec 10, 2023 @ 23:40
    Brendan Rice
    100

    Hey Tom. Welcome to Umbraco!

    There is a few ways to do what you're asking:

    1. Surface Controllers - are probably closest to what you're used to:

    https://docs.umbraco.com/umbraco-cms/reference/routing/surface-controllers/

    1. API Controllers - the name kind of gives it away (think Web API)

    https://docs.umbraco.com/umbraco-cms/reference/routing/umbraco-api-controllers

    Hope this helps.

Please Sign in or register to post replies

Write your reply to:

Draft