{"action":"created","issue":{"url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/1842","repository_url":"https://api.github.com/repos/OrchardCMS/OrchardCore","labels_url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/1842/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/1842/comments","events_url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/1842/events","html_url":"https://github.com/OrchardCMS/OrchardCore/issues/1842","id":326263373,"number":1842,"title":"ContentFields do not work wit fluid templates","user":{"login":"dschmid","id":13175239,"avatar_url":"https://avatars3.githubusercontent.com/u/13175239?v=4","gravatar_id":"","url":"https://api.github.com/users/dschmid","html_url":"https://github.com/dschmid","followers_url":"https://api.github.com/users/dschmid/followers","following_url":"https://api.github.com/users/dschmid/following{/other_user}","gists_url":"https://api.github.com/users/dschmid/gists{/gist_id}","starred_url":"https://api.github.com/users/dschmid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschmid/subscriptions","organizations_url":"https://api.github.com/users/dschmid/orgs","repos_url":"https://api.github.com/users/dschmid/repos","events_url":"https://api.github.com/users/dschmid/events{/privacy}","received_events_url":"https://api.github.com/users/dschmid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OrchardCMS/OrchardCore/milestones/4","html_url":"https://github.com/OrchardCMS/OrchardCore/milestone/4","labels_url":"https://api.github.com/repos/OrchardCMS/OrchardCore/milestones/4/labels","id":2812921,"number":4,"title":"beta2","description":"https://github.com/OrchardCMS/OrchardCore/wiki/Roadmap#beta-2","creator":{"login":"sebastienros","id":1165805,"avatar_url":"https://avatars0.githubusercontent.com/u/1165805?v=4","gravatar_id":"","url":"https://api.github.com/users/sebastienros","html_url":"https://github.com/sebastienros","followers_url":"https://api.github.com/users/sebastienros/followers","following_url":"https://api.github.com/users/sebastienros/following{/other_user}","gists_url":"https://api.github.com/users/sebastienros/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienros/subscriptions","organizations_url":"https://api.github.com/users/sebastienros/orgs","repos_url":"https://api.github.com/users/sebastienros/repos","events_url":"https://api.github.com/users/sebastienros/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienros/received_events","type":"User","site_admin":false},"open_issues":99,"closed_issues":125,"state":"open","created_at":"2017-10-03T22:13:22Z","updated_at":"2018-05-24T19:50:08Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-05-24T19:41:26Z","updated_at":"2018-05-24T23:48:01Z","closed_at":null,"author_association":"NONE","body":"Namely the TextField but argueably all ContentFields does not provide support accessing the content by fluid templates. (e.g `{{ Model.Field.Text }}` )\r\n\r\nAccording to an answer from Sipke Schoorstra on StackOverflow (https://stackoverflow.com/questions/50484226/a-way-access-field-content-with-liquid/) the Component does not register correctly with liquid.\r\n\r\n1. The Registration `TemplateContext.GlobalMemberAccessStrategy.Register<DisplayTextFieldViewModel>();` is obsolete\r\n\r\n2. The ComponentField should register like `TemplateContext.GlobalMemberAccessStrategy.Register<TextField>();`"},"comment":{"url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/comments/391899457","html_url":"https://github.com/OrchardCMS/OrchardCore/issues/1842#issuecomment-391899457","issue_url":"https://api.github.com/repos/OrchardCMS/OrchardCore/issues/1842","id":391899457,"user":{"login":"sebastienros","id":1165805,"avatar_url":"https://avatars0.githubusercontent.com/u/1165805?v=4","gravatar_id":"","url":"https://api.github.com/users/sebastienros","html_url":"https://github.com/sebastienros","followers_url":"https://api.github.com/users/sebastienros/followers","following_url":"https://api.github.com/users/sebastienros/following{/other_user}","gists_url":"https://api.github.com/users/sebastienros/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienros/subscriptions","organizations_url":"https://api.github.com/users/sebastienros/orgs","repos_url":"https://api.github.com/users/sebastienros/repos","events_url":"https://api.github.com/users/sebastienros/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienros/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T23:48:01Z","updated_at":"2018-05-24T23:48:01Z","author_association":"MEMBER","body":"I understand the issue now. The view models don't need to be exposed explicitly as they are exposed automatically. At the same time the fields are not, and if the view models don't have the data directly (like Html and DateTime do) then it's useless. What you are suggesting will fix the issue. I will fix it."}}
{"actor":{"display_login":"sebastienros"}}