Great question. Your expectation contains nearly the semantics I'd suggest
and have implemented with one modification: the DEFAULT doesn't show up when
view="bar". <Content> without view, or with view="" is equivalent to
view="default". This facilitates shared code between the default content
block and other views. Without it, the default block would have to stand on
its own, while at the same time always being included in the alternate
specified views.

For a while I was a proponent of precluding repeated view definitions
altogether, but this mechanism is an elegant way to accommodate shared code
IMO. Thoughts?

John

On Wed, Jan 30, 2008 at 7:12 PM, Arne Roomann-Kurrik <[EMAIL PROTECTED]>
wrote:

> What happens when multiple content sections specify the same view?
>
> <Content view="bar"> BAR </Content>
> <Content view="foo, bar"> FOO+BAR </Content>
> <Content> DEFAULT </Content>
>
> If the current view is "bar", what is the expected result?  (I would
> expect
> "BAR FOO+BAR DEFAULT", but wanted to get clarification)
>

Reply via email to