michal frackowiak wrote on 05 Feb 2010 09:30
So far the design does not address the problem of nested contexts . The simplest case is a ListPages module in _template page.
Name of the current page: %%page:name%%
Name of the iterated page: %%page:name%%
Name of the current page: ?????????????
First %%page:name%% obviously refers to the current page. %%page:name%% inside ListPages should be resolved in context of the iterated page. But what if you want to refer to the current page within ListPages? I would suggest something like %%:page:name%%.
There are not necessarily many use cases for this, but the issue is critical when we design proper scope-aware symbol resolver. It should have the possibility to access outer scopes too.
Start a new sub-thread
page revision: 0, last edited: 05 Feb 2010 09:30