OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

placement does not apply for the NumericField under the module

Open infofromca opened this issue 4 months ago • 9 comments

Describe the bug

Orchard Core version

latest main

To Reproduce

  1. Create MaintenanceFeesFinance NumericField under FieldsAccordionPart
  2. Inside placement.json of a Module, "NumericField": [ { "differentiator": "FieldsAccordionPart-MaintenanceFeesFinance", "place": "-" }]
  3. See error , the data of MaintenanceFeesFinance NumericField still show on the page

Expected behavior

it should behavior the same as

 "DateField": [
   {      
     "differentiator": "FieldsTablePart-Available",
     "place": "-"
   }
 ]

under the same Module.

Logs and screenshots

infofromca avatar Oct 15 '25 13:10 infofromca

when I put "NumericField": [ { "differentiator": "FieldsAccordionPart-MaintenanceFeesFinance", "place": "-" }] inside placement.json of a theme, now it works

infofromca avatar Oct 15 '25 22:10 infofromca

@MikeAlhayek is suggesting that you may use an Editor for this field and then the shape is different. Try to guess the shape type from the editor's template. If that's the case we need to document it.

sebastienros avatar Oct 16 '25 17:10 sebastienros

Image

infofromca avatar Oct 16 '25 22:10 infofromca

the same field and placement.json , just diff. under a Module and a Theme

infofromca avatar Oct 16 '25 22:10 infofromca

I tried to reproduce the issue quickly, but everything seems to work as expected on my end. Since theme placement takes precedence over module placement rules, and it works correctly in the theme, this suggests the issue might be in your module’s placement.json. It’s possible there’s a mistake there, or perhaps additional placement rules elsewhere that are interfering. Double-checking those might help pinpoint the problem.

gvkries avatar Oct 21 '25 08:10 gvkries

Did you put the placement.json under a module only?

infofromca avatar Oct 21 '25 23:10 infofromca

Did you put the placement.json under a module only?

Yes

gvkries avatar Oct 22 '25 07:10 gvkries

We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues).

This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here.

github-actions[bot] avatar Oct 23 '25 17:10 github-actions[bot]

@infofromca would you be able to create a small github repos that just needs to be started to see the issue? And the repos would point to the preview nuget feed to use the main branch: https://github.com/OrchardCMS/OrchardCore?tab=readme-ov-file#preview-package-feed

sebastienros avatar Oct 23 '25 17:10 sebastienros