Nested contexts / scopes
nav_first.pngFirst: thread:351
Parsing order for field filters
Edited: 18 Apr 2010 13:34 by: scottplan
Comments: 0
Tags:
nav_prev.pngPrevious: thread:351
Parsing order for field filters
Edited: 18 Apr 2010 13:34 by: scottplan
Comments: 0
Tags:
Last: thread:238
Why not in simple pages
Edited: 11 Jan 2010 10:15 by: Steven Heynderickx
Comments: 4
Tags:
nav_last.png
Next: thread:238
Why not in simple pages
Edited: 11 Jan 2010 10:15 by: Steven Heynderickx
Comments: 4
Tags:
nav_next.png

michal frackowiakmichal 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%%

[[module ListPages]]
Name of the iterated page: %%page:name%%
Name of the current page: ?????????????
[[/module]]

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

Comments: 1

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License