Given this modelling part, relavantrelevant for the linking.
Component linking should be implement for linking to:
1. Inside website
Linking to e.g. article, article-top-tasks.
Created field with XML name "internalLink" for schema and model.
It works without Link (schema/model). Why? I was suprised ;-)
Other XML name then "internalLink" didn't work.
Created schema "ExterneLink" (for reuse), it contains 1 field for Url.
To get this to work, schema and model defined, can us it value in class/view.
Advantage: Works. It's also normal for embedded of component linking.
Disadvantage: Extra field.
Example for 1: Inside website 'Tegel' (Tile)
Example for 2 extended for Outside website
Q1- Can you custom (extend/change) Link schema e.g. icon or drop altText?
Core example application use "Link" schema.
Sdl.Web.Common.Model.Link has model in Dxa Framework.
I made a Link model myself, when tested the Url is NOT resolved. Why?
Q2- Created schema/model "List item" instead of "Link".
Advantage and disadvantage?
Q3- Multimedia schema "Document" for upload/link "Pdf files".
Will it work with XMLxml name "internalLink" (like inside website above)?
Q4- Can use the Xml Name for both?
Datamodel contains two exact same schema's "ListItemLijst".
One for component link and one is Embeddable.