-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested objects with the same name aren't accessible #1
Comments
This is down to a bug in the ExpressionEngine Template library that I have reported multiple times. I first alerted a developer at EllisLab about this 2 years ago, and since then after multiple requests they still have not fixed it. :-/ |
Thanks for your reply, Phil. Not sure why I missed it until now. |
No worries. I'm going to keep this open until EllisLab fix the bug, which may well be never. Their parser is pretty weak for things like this. |
Without a trigger to tell the parser your intention, it cannot know which tag the front end developer is wishing to "own" identically named variables. There are countless common cases where the inner tag pair / module is acting on the rendered value of a parent tag pair / module. If the parser assumed scope at only the most deeply nested level, a lot of ExpressionEngine functionality would be lost. Incidentally, our engineers are looking at this internally to find a good solution that supports both. |
For instance, when accessing the Facebook Graph API, there's an object ID (
{id}
) but also an author ID ({from}{id}{/from}
). The latter still returns the parent's object value.The text was updated successfully, but these errors were encountered: