hlxsites / merative

Merative.com site on Franklin
Apache License 2.0
0 stars 11 forks source link

Always allow overrides on curated content #230

Closed arumsey closed 1 year ago

arumsey commented 1 year ago

Blocks such as teaser-list and related-resources will noyl use overrieds for title, description and link title when the linked document has not been indexed. This logic needs to be flipped so that authored overrides for title,description and link title are used first if they exist and indexed values are only used as a fallback.

VladimirZaets commented 1 year ago

Hi, just want to clarify do I understand correct. You mean that firstly (with higher priority) we should take content from the related-resources block, as an example here: "Focused innovation will deliver steady progress in health and social care" has header "Block" but in document its declated as "ARTICLE" (and same for description title, link title)

Is that what you mean?

Screen Shot 2023-04-19 at 1 11 52 PM Screen Shot 2023-04-19 at 1 11 45 PM
arumsey commented 1 year ago

@VladimirZaets Correct! Any content authored in the block (eyebrow, title, description, lint title) should have a higher priority than what comes from the index. Any of the index values should be used when an authored value is not available. This behaviour should be the same in related-resources and teaser-list.