Short answer:

Add "gView:bold" as parameter to the mgtdList definitions in your
template (see template below).

Long answer:

As far as I can see from the code the mgtdList macro distinguishes
parameters which define "what" to render (e.g. the "startTag"
parameter initially defining the tag used to collect the items to be
listed - or the "group" parameter defining another tag for grouping
the collected items) from parameters which define "how" to render
items (e.g. "view" defining how to render every single list item - or
"gView" defining how to render the group headings).

The plugin 'TiddlerViewMethods' provides several render methods which
can be used as argument of the "view" or "gView" parameters. In case
you do not use these parameters the implementation has defined
defaults.

As for "view" the default argument (see the third function parameter
below) is "plain":

      // how to render list items
      var viewType = getParam(pp, "view", "plain");

Accordingly you can find a function "render_plain" in the
TiddlerViewMethods plugin. So if you do not define any "view" argument
to the mgtdList macro, this render function will be used as default.
In your template you are using "ProjectArea" and "ProjectComplete" as
arguments for the view parameter. This just results in the usage of
the functions "render_ProjectArea" and "render_ProjectComplete" for
every list item.

As for the render method of group headings it is a little bit
different:

      // group by another tag
      var groupBy = getParam(pp,"group","");

      // how to render headings
      var gViewType = getParam(pp,"gView",groupBy);

Here the "default" value for the "gView" parameter is the value you
have passed to the "group" parameter. This means, if you do "not" use
the "gView" parameter in your mgtdList definition, it is expected that
there is a render function corresponding to value passed to "group".

In your template you are not using the "gView" parameter. You have
passed "Horizon" as value for the "group" parameter. So the system
expects to find a render function with the name "render_Horizon" in
order to find an implementation how to render this group heading. As
you have not implemented such a method, the system is not able to find
it and reports

    "*** cant render render_Horizon ***".

Well, just tried to explain a little bit what's happening behind the
scenes and why you get this error message. You can easily solve this
issue by following the short anser - adding the parameter "gView" to
your mgtdList definitions and use an argument which references an
available render function.

For headings only two render functions will make sense though: "plain"
or "bold". Just plain might not look very nice for headings. So you
might want to use "bold". (By the way: This might change in the future
as Simon has commented the corresponding "render_bold" function with
"// TODO. this seems stupid". :) But for now) I would recommend to add
the "gView:bold" parameter in your template. This should enable you to
render your dashboard:

{{cols2{

{{col{

<<mgtdList
    title:'Active Projects'
    startTag:Project
    tags:'Active && !Complete'
    view:ProjectArea
    mode:global
    group:Horizon
    gView:bold
    newButtonTags:'Project Active'
    >>

}}}

{{col{

<<mgtdList
    title:'Someday/Maybe Projects'
    startTag:Project
    tags:'Someday/Maybe && !Complete'
    view:ProjectArea
    mode:global
    group:Horizon
    gView:bold
    newButtonTags:'Project Someday/Maybe'
    >>

{{scroll10{

<<mgtdList
    title:'Completed Projects'
    startTag:Project
    tags:'Complete'
    view:ProjectComplete
    mode:global
    group:Horizon
    gView:bold
    >>

}}}
}}}
}}}

Of course this will only work if you have properly introduced
"Horizon" as additional GTDComponent.

Hope that helps - and solves your problem.

If not... it would be nice to have some example site of your
configuration in order to be able to look into and find the reason. :)

Best regards
Georg

-- 
You received this message because you are subscribed to the Google Groups "GTD 
TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/gtd-tiddlywiki?hl=en.

Reply via email to