I created an entity reference field for a content type, to display related contents. My entity reference view display mixed of 4 content types (Image, News, Document, Biography).
I created a view mode called "Promote" and apply this view mode for 4 content types above.
But i have a trouble with "read more" link for each content type in "Promote" mode.
Image content type should show "Go to Image entry"
News content type should show "Read more"
Document content type should show "Go to Document page"
Biography content type should show "View detail"
How can i config the read more link text for each content type based on its view mode ? For example: May be in teaser mode the link text should be "View more".
I prefer not to hard code this in the twig template.
Any help would be very appreciate! Thanks
I just pick up some related contents from my entity reference field view and manage display as "Rendered entity".