{"action":"closed","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/6411","repository_url":"https://api.github.com/repos/silverstripe/silverstripe-framework","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/6411/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/6411/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/6411/events","html_url":"https://github.com/silverstripe/silverstripe-framework/issues/6411","id":196083336,"number":6411,"title":"$Pos inside $Me template always returns 1","user":{"login":"jacobsjensen","id":2647681,"avatar_url":"https://avatars.githubusercontent.com/u/2647681?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobsjensen","html_url":"https://github.com/jacobsjensen","followers_url":"https://api.github.com/users/jacobsjensen/followers","following_url":"https://api.github.com/users/jacobsjensen/following{/other_user}","gists_url":"https://api.github.com/users/jacobsjensen/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobsjensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobsjensen/subscriptions","organizations_url":"https://api.github.com/users/jacobsjensen/orgs","repos_url":"https://api.github.com/users/jacobsjensen/repos","events_url":"https://api.github.com/users/jacobsjensen/events{/privacy}","received_events_url":"https://api.github.com/users/jacobsjensen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T15:24:37Z","updated_at":"2016-12-16T16:10:53Z","closed_at":"2016-12-16T16:10:52Z","body":"Hi Guys, might be me just being dump, but I'm using the content-blocks module (nobrainerweb/silverstripe-content-blocks) and I've hit a bump.\r\n\r\nOn Page.ss I have an ActiveBlocks loop, in which the onlye thing I have is $Me, which then renders whichever template and data picked by the user. In these templates rendered by $Me I try to access $Pos to check if it's the first item in the ActiveBlocks loop... But it always return 1. \r\n\r\nIs there any way to \"get out of that scope\"?\r\n\r\nIf I add $Pos directly inside the ActiveBlocks loop it returns the correct value... No way to pass on a value to $Me as you can with an include?"}}
{"actor":{"display_login":"dhensby"}}