Copied to clipboard

Flag this post as spam?

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


  • ewuski 89 posts 235 karma points
    Jan 04, 2024 @ 12:13
    ewuski
    0

    Display a summary of some other properties on a content page

    I wonder if there is any way of displaying a property in the CMS with a value that is a summary of some other property values of the content page.

    For example: I have several fields that tell me the number of different products purchased and I would like to have a label that displays the total number of product booked. The same could apply to prices etc.

    I can do this in the code behind, eg. extend the partial model and have my own property but I would also like to have it displayed in the CMS on the content page.

    Eg.

    Boxes: 2
    Dolls: 3
    
    // This value I want to be automatically presented as a total of the two values above (Boxes & Dolls) that are set as numeric fields in the doc type.
    Total: 5
    

    Any ide aif this is doable?

  • Brendan Rice 538 posts 1100 karma points
    Jan 04, 2024 @ 22:39
    Brendan Rice
    0

    Most things are possible with Umbraco.

    Please explain what you mean by "displayed in the CMS on the content page"?

  • ewuski 89 posts 235 karma points
    Jan 12, 2024 @ 08:45
    ewuski
    0

    In the backoffice on the page. Where you edit the content :) Not sure how else to explain this?

Please Sign in or register to post replies

Write your reply to:

Draft