Lombiq / DotNest-Support

Support forum in form of issues for the Orchard Core SaaS DotNest (https://dotnest.com/).
https://dotnest.com
0 stars 1 forks source link

Content field value access in Liquid behaves differently than locally #37

Closed Piedone closed 5 years ago

Piedone commented 6 years ago

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.

Piedone commented 5 years ago

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.