Patch #1700

Support for extra macros to help in move from trac

Added by Robert Shell about 11 years ago. Updated over 7 years ago.

Status:NewStart date:2008-07-28
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Wiki
Target version:-

Description

With moving from trac needed some more macros for linking issues back to wiki pages to show queue sizes, new tickets waiting in a area etc. issue_list Lists Issues matching a list of given parameters

!{{issue_list(tracker,category,status,user,max) }}

issue_count, Count number of issues matching a set of filters (tracker,owner,category,status currently supported as filters)

!{{issue_count(tracker=xxx,category=xxx,status=xxxx) }}

issue_query: Same as issues_count be returns lists and not single count

!{{issue_query(tracker=dddd&category=dsdd&status=dddd&owner=ssss&max=10) }}

Also with more of wiki pages across had problems with lose of TitleIndex function so re-implement this for redmine. I Have added ability to create a number of styles of list.

title_list: Inserts an alphabetic list of all wiki pages into the output. Appears as a unordered list

{{title_list(title-prefix)}}

title_menu: Inserts an alphabetic menu (toc style) of all wiki pages into the output. This uses the toc css to produce a nice side menu to link groups of pages together.

{{title_menu(title-prefix,level,max,css-sytle)}}

title_bar: Inserts an alphabetic menu of all wiki pages into the output. This is basically aimed a across the screen menu with details menu currently styled as a table to our old trac navigation.

!{{title_bar(title-prefix,level,max,css-sytle)}}

title_index: title_index boxed up titles by letter to create a glossary or index. Use this for generation of a glossary and for larger indexes of pages.

!{{title_menu(title-prefix,columns,max)}}

__

macros_patch.patch Magnifier - Patch for macros.rb to add extra macros (14.2 KB) Robert Shell, 2008-07-28 18:31

macros.rb Magnifier - My local macro.rb file with extras (16.8 KB) Robert Shell, 2008-07-28 18:31

macros.rb Magnifier (16.7 KB) Robert Shell, 2008-11-08 16:33


Related issues

Related to Redmine - Feature #1226: query results on wiki pages New 2008-05-12

History

#1 Updated by Robert Shell about 11 years ago

Have a update of trac loader rake task to follow, just have a few more conversions to automate. Just dealing with n x trac to 1 redmine issues with ticket numbers.

#2 Updated by Robert Shell almost 11 years ago

Enhanged and fixes a number of the marcos.

#3 Updated by Karl Heinz Marbaise almost 11 years ago

Hi Robert,

take a look at #2114.

Kind regards
Karl Heinz Marbaise

#4 Updated by Etienne Massip over 7 years ago

  • Subject changed from Support for extra macors to aid in move from trac to Support for extra macros to help in move from trac

Also available in: Atom PDF