Skip to content

Instantly share code, notes, and snippets.

@fabarea
Created September 25, 2014 21:05
Show Gist options
  • Save fabarea/7083e8fb2126d867a323 to your computer and use it in GitHub Desktop.
Save fabarea/7083e8fb2126d867a323 to your computer and use it in GitHub Desktop.
Bug if variable contains in "as" (foo in this example) is different than "menu"
<v:page.menu as="foo">
<f:for each="{foo}" as="item">
<a href="{item.link}">{item.title}</a><br />
<v:page.menu.sub pageUid="{item.uid}" />
</f:for>
</v:page.menu>
@fabarea
Copy link
Author

fabarea commented Sep 25, 2014

So, this menu generated:

Tried to remove a variable "rootLine" which is not stored in the context! 

If you replace "foo" by "menu", it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment