-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MyItem.Picture("Item.Item") with an Entity #3189
Comments
Some brief background: we introduced the path notation - eg. The Picture API needs a bit more magic, as it needs the field as well as the parent, so this is just a bit more complex, and not implemented yet. You can still easily do this, using
If you need null/empty checks, you can do
We'll work on this soon, as it shouldn't be too hard to implement; expect it end of October. |
Note: TBH I never expected this to pop up so soon 😆 - awesome that you're already using it! |
This helps, thanks: @MyItem.Child("Image").Picture("Image") Child and Parent a bit new to me so hadn't tried that. Makes perfect sense. I really love the work you've done with 2sxc and have become quite addicted to learning and building with it and keeping our team up-to-date on the changes with it. I've built a toolbar code generator / builder for 2sxc but had not shared it yet but you might here from me soon on that to get your thoughts. would be for community to help anyone that wants to build or customize the toolbars as they can be so powerful in ways i don't think a lot of people realize. |
I just implemented it ;) But it won't be released till ca. end of October, as I'm about to go on vacation and don't want to release new code rigth before ;). |
Just saw your previous post. Thanks for the Kudos 💖 I suggest you show it at the 2sxc Meetup - I believe it's Nov. 2nd. Are you in? |
I'm submitting a
[x] not sure - waiting to implement perhaps?
...about
[x] Razor templating
[x] Content Types or data management
Current Behavior / Expected Behavior
Trying to do this with an entity field type that contains an image but get en error to contact iJungleBoy
@MyItem.Picture("Image.Image")
Error: System.NotImplementedException: Path support on this method is not yet supported. Ask iJungleboy at ToSic.Sxc.Data.CodeDataFactory.Field(ITypedItem parent, String name, Boolean propsRequired, String noParamOrder, Nullable`1 required)
Instructions to Reproduce the Problem
Your environment
The text was updated successfully, but these errors were encountered: