Skip to content
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

Open
sperte opened this issue Aug 13, 2012 · 4 comments
Open

Nested objects with the same name aren't accessible #1

sperte opened this issue Aug 13, 2012 · 4 comments

Comments

@sperte
Copy link

sperte commented Aug 13, 2012

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.

@philsturgeon
Copy link
Owner

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. :-/

@sperte
Copy link
Author

sperte commented Oct 20, 2012

Thanks for your reply, Phil. Not sure why I missed it until now.

@philsturgeon
Copy link
Owner

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.

@derekjones
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants