Bruno Samardzic

Results 21 comments of Bruno Samardzic

From what i understand you, 2 drivers would create 2 shapes, i would ignore/hide 1 shape and show the other? But that would mean i'd have to copy all of...

Sure: It's a bit convoluted but there are a couple of use cases: 1. make a field read only after initial creation depending on user privilege 2. customize labels for...

> These are both better done from `IShapeTableProvider`: > > - `AdminAttribute.IsApplied()` check: you can hide (place) shapes with any custom logic, see an example [here](https://github.com/Lombiq/Orchard-Training-Demo-Module/blob/0684bb884fdc86c510422cc7bc5f4b786899e9bc/Lombiq.TrainingDemo/Services/ShapeHidingShapeTableProvider.cs#L43). > - Customize label:...

> @brunoAltinet can't you just add a new editor that wraps that logic instead of having to inherit and register yet another service? Tried it but wrapping doesnt work, Prefix...

> > How do I know if the shape is for a new contentitem? And second, I'd need access to parent part settings, is that possible? That was pretty straightforward...

I'm still working on this, intermittently, will report back tomorrow on how I find this solution. ________________________________ From: Zoltán Lehóczky ***@***.***> Sent: Wednesday, October 23, 2024 1:25:10 AM To: OrchardCMS/OrchardCore...

@Piedone so i did manage to get it working via IContentDisplayEditor, even though the implementation to me seemed too involved compared to what I was trying to achieve. If anyone's...

> > I would omit the TypePartDefinition but would keep the IsNew flag > > Why? Is this not useful anywhere? Or is it because it can be retrieved in...

> That could break the current drivers which use an overload to create a shape result based on a type that doesn't implement IShape and then create the proxy. Hmm,...