7. Title of the articleTitle of the article
Title of the section #1
Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Vivamus vel venenatis nunc.
Praesent luctus auctor turpis nec cursus.
Sed commodo feugiat ullamcorper.
Title of the section #2
Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Vivamus vel venenatis nunc.
Praesent luctus auctor turpis nec cursus.
Sed commodo feugiat ullamcorper.
Title of the section #3 ...
9. Title of the articleTitle of the article
Title of the section #1
Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Vivamus vel venenatis nunc.
Praesent luctus auctor turpis nec cursus.
Sed commodo feugiat ullamcorper.
Title of the section #2
Lorem ipsum dolor sit amet, consectetur
adipiscing elit. Vivamus vel venenatis nunc.
Praesent luctus auctor turpis nec cursus.
Sed commodo feugiat ullamcorper.
Title of the section #3 ...
10. Edit "Title of the article"Edit "Title of the article"
Title of Section
Body of Section
Title of the section #1
Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Vivamus vel venenatis nunc. Praesent luctus
auctor turpis nec cursus.
Title of Section
Body of Section
Title of the section #2
14. Entity ReferenceEntity Reference
Entity APIEntity API (Required)(Required)
Entity Construction Kit (ECK)Entity Construction Kit (ECK)
Inline Entity FormInline Entity Form
23. LimitationsLimitations
The sub-fields inside the multifield are limited to
one value
Cannot have a multifield inside another multifield
More issue related to advanced field types
Unholy things to Field and Entity APIs
of the Multifieldof the Multifield
28. Custom field fasterCustom field faster
than Entity Referencethan Entity Reference
byby 25%25%
and faster Field Collectionand faster Field Collection
byby 43-6543-65%%
29. Another ways toAnother ways to
optimizeoptimize
Optimize Database Queries: enable
Entity Cache, etc.
Minimize of the structure: remove unused (HTML)
elements
Divide the form: move out "hard" field(s)
from the form
31. EditEdit "Title of the article""Title of the article"
Title
Body
References
Title of the some article
Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Vivamus vel venenatis nunc. Praesent luctus
auctor turpis nec cursus.
Article 1
Article 2
35. 1. Create custom field widget ("empty" widget to
hide form elements)
StepsSteps
36.
37. 1. Create custom field widget ("empty" widget to hide
form elements)
2. Build custom form to edit field's values and display
(render) it on the Edit Node page
Create custom table and provide functionality
to save field's values into custom table
StepsSteps
38. StructureStructure
of the custom tableof the custom table
LegendLegend
form_build_id - Form Build ID of the Node Edit form
entity_id - Node ID
revision_id - Node Revision ID
user_id - User's ID who save value(s)
values - Value(s) of the field (serialized)
expired - Determine whether values are expired
form_build_id entity_id revision_id user_id values expired
39. 1. Create custom field widget ("empty" widget to hide
form elements)
2. Build custom form to edit field's values and display
(render) it on the Edit Node page
Create custom table and provide functionality
to save field's values into custom table
3. Provide validate (presave) function to set form values
(of the References field)
StepsSteps