Currently there are two ways to create new "views".  I put "views" in quotations because the first way is technically not creating a view, but it has a very similar effect.

  1. Wagneering: You can create a new (usually virtual) card whose content is the view you want.
  2. Developing: You can really create a new view via the pack API

I'll give an example of #1.  Suppose you have a Claim card called "my claim", and you want to make a custom way to see its data.  Since "layout" and "view" already have precise meanings in wagn, I'll call this a "perspective" for now.  So you're trying to create a perspective of the data that gives you the five things you listed above.

 

The trick is to make a virtual card called "my claim+my perspective", which I'll shorten to "mc+mp".

 

To make this card, we might make a *content rule; let's call it mp+*right+*content.  Your five parts might look something like this:

  1. {{_left+short description}}
  2. {{_left|name}}
  3. [[_left  ]]
  4. (I'll stop writing the inclusion syntax now)  who:  +*editors, when: +*when last edited
  5. you'd have to write custom wql for this one

This would still take some tweaking, but that should help you get started!


Thanks Ethan - you are my personal hero!

One follow-up question: are there different kinds of views available for the date when edited?

  --Philipp.....Mon Jun 04 21:23:21 +0000 2012


there are not currently, but it's always been our intention to support that.

  --Ethan McCutchen.....Mon Jun 04 21:34:22 +0000 2012


How do I get the view that is used in the view "change"?

  --Philipp.....Mon Jun 04 21:35:21 +0000 2012


Well, what you describe (a view within a view) is the way it *should* be done, in which case you could wagneer it. Unfortunately that's currently hard-coded in the :change view in ruby code and isn't accessible to wagneers outside of the change view.

 

perhaps the thing to do is include { _left | change } somewhere in your "perspective" ?

  --Ethan McCutchen.....Mon Jun 04 21:40:15 +0000 2012


So instead of what you suggested under 4 :+*when last edited I use _left|change

  --Philipp.....Mon Jun 04 21:41:55 +0000 2012