Lombiq/DotNest-Support

Content field value access in Liquid behaves differently than locally

Closed this issue · 1 comments

See this line: https://github.com/Lombiq/Show-Orchard-Theme/blob/dev/Views/Fields/MediaLibraryPicker-Screenshot.liquid#L1 Locally this works (with .liquid files as well as from Template content items) but the link will be blank in production.

This can be observed at e.g. https://showorchard.com/gallery/music-arts/smithsonian-folklife-festival. Here the picture's link's href is blank.

The issue actually was not with Liquid, but with the site's content definition: there was both a WebsitePart with fields on the Website content type, and a part called Website (created when adding fields directly to the type). This mad resolving Model.ContentItem.WebsitePart.Website.Value impossible.