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.
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.
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.
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.
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 :)
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. 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:
Any pointers much appreciated!
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
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.
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
is working on a reply...