Copied to clipboard

Flag this post as spam?

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


  • Ross 16 posts 107 karma points
    Feb 07, 2024 @ 12:21
    Ross
    0

    Contentment Content Blocks property no longer showing names for items in Azure

    Hi Lee and fellow Umbraco devs,

    I have a custom property using [Contentment] Content Blocks. This no longer shows the label for each element in our Azure deployed sites.

    The Name template is configured as such:

    {{ countryName }} -> this being one of the properties of the element type. The site has been live in Azure for over a year with no issues. enter image description here The data is there, just not showing the label.

    I've tried:

    • "bundleOptions": "Independent" for the package manifest.

    • upgrading to Contentment 4.6.0 (was on 4.5.0)

    • specifying {{ $index }} as the name template - nothing showing still

    • Inspected the browser console - no errors or failed requests

    All works fine on my dev machine. In our Azure environments this no longer works.

    Versions:

    • Umbraco v12.2.0
    • Contentment 4.6.0

    Any pointers much appreciated!

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Feb 07, 2024 @ 13:49
    Lee Kelleher
    0

    Hi Ross, thanks for reporting this.

    Certainly sounds like a strange issue, especially if it is working locally for you.

    I can't think what might be happening on the Azure environment that would be causing an issue. If there are no warnings/errors in the browser devtools console, then I'd assume all the JavaScript is loaded up and should run as expected.

    Would you be able to check if the Name Template renders anything (e.g. not only the {{ }} expressions), like a simple "Hello world"?

    If that doesn't render, then something strange is going on with the AngularJS interpolation, but again, I can't think why that might be happening.

    Sorry I don't have any answers at the moment.

    Cheers,
    - Lee

  • Ross 16 posts 107 karma points
    Feb 12, 2024 @ 12:21
    Ross
    0

    Hi Lee,

    many thanks for this. I got to the bottom of it. It was an issue with the way the package deploys. Seems that when the package was updated, updates to content-blocks.html editor were not deployed.

    enter image description here

    When I looked at the files in the Editors directory (Contentment, under App_Plugins) , they had their Copy to output directory set to Do not copy. Perhaps I copied all files to the Azure set up initially, I don't remember.

    So updating this file fixed the issue. But going forward, would you be able to advise on the deployment process? I don't quite get how I got it in this pickle :)

    Regards, Ross

Please Sign in or register to post replies

Write your reply to:

Draft