question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve support for working with fields via a "typed" field collection

See original GitHub issue

Proposal for future improvement:

Today web/list fields can be read and returned as a collection of IField. This works fine for basic fields but for more complex fields (eg taxonomy fields) part of the field definition (e.g. term set id) lives inside the field’s SchemaXml property. What if there was a method AsTypedFields() on the current IFieldsCollection that would return the fields a collection of ITextField, IBoolField, ITaxonomyField …all inheriting from a common ITypedField. This way developers don’t have to parse the field xml themselves, they can just use a typed experience to work with the field properties.

These typed fields should also have the respective Update and Delete methods to allow for easy updating of the field.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jansenbecommented, Nov 23, 2021

Thanks @s-KaiNet , nice and simple solution for the problem. I like it!

1reaction
s-KaiNetcommented, Nov 19, 2021

Yeah, as you suggested, let’s start with the taxonomy field adjustment and will see if additional options or needs will popup.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Improving performance with Field Collections? - Drupal Answers
I'm using using entity reference, field collection , and field collection table modules on a site that features "courses" and "lessons" as ...
Read more >
Fieldcollection | Pimcore Development Documentation
Object field collections are predefined sets of data and layout fields, that can be added to objects at an arbitrary amount. An object...
Read more >
Work Type Fields for Field Service
Work types have the following fields. Some fields may not be visible or editable depending on your page layout and field-level security settings.Required......
Read more >
CMS (Formerly Content Manager) - Field Types
In your CMS collections, the field type determines what kind of content you can store in the field. The field type also determines...
Read more >
Customize the fields of a request type | Jira Service ...
Learn how to customize the fields for a request type's request form or issue view in Jira Service Management.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found