0

Can you please provide some examples for mapping of Component Link Schema fields in Java.

1
  • This is very open ended question. I would recommend try something and let us know what have you tried and what was the output? That way it will be easier to understand what you are trying to do – Hiren Kaku Nov 3 '16 at 16:42
2

Component Link fields can be mapped to different View Model property types:

  • String - represents the resolved Page URL for the linked Component.
  • Link - represents the resolved Page URL for the linked Component.
  • A subclass of AbstractEntityModel - represents the linked Component itself
  • A subclass of MediaItem - in case of a Multimedia Component; represents the linked Component's Binary content.
0

As Rick mentions Component Links are flexible in how they are mapped.

You can use the code on Github as a reference guide

See Teaser's link, of type Link.

It shows a simple example using Link that exposes url, text and alternate text

Not the answer you're looking for? Browse other questions tagged or ask your own question.