}}}
=== Component `HtmlContent` ===
Enables HTML content in description, adding Javascript editor and
adding additional CSS file for manipulation CSS declarations.
Options:
|| '''option name''' || '''values''' || '''description''' ||
|| description_format || `wiki` | `html` || format for ticket description (default: '''wiki''') ||
|| editor_source || valid path || Usually it should stored in project or common js folder. For ckeditor for example it could be site/js/ckeditor/ckeditor.js. ||
|| editor_replace || valid path || Javascript, which should replace textareas. ||
|| additional_css || valid path || Path to additional css file, which overrides css-declarations. ||
Sample configuration:
{{{
[ticket]
description_format = html
editor_source = site/js/ckeditor/ckeditor.js
editor_replace =
additional_css = site/css/add_ticket.css
}}}
In above sample configuration [http://ckeditor.com/ CKEditor] is used as online editor and
the editor source is located in projects-folder `htdocs/js/ckeditor`,
after each `textarea` with HTML-Option content of `editor_replace` will be added.
The file in option `additional_css` will be added and therefore will override these declarations.
'''Attention:''' To have a correct preview, file `ticket_box.html` has to be edited:
{{{
1
2
3 ${wiki_to_html(context, '{{{ \n#!html \n' + ticket[field.name] + '\n}}}', escape_newlines=preserve_newlines)}
4 ${field.rendered}
5 ${ticket[field.name]}
6
7
}}}
Line 3 has to be inserted into `py:choose` block in above template-snippet.
{{{
${wiki_to_html(context, '{{{ \n#!html \n' + ticket.description + '\n}}}', escape_newlines=preserve_newlines)}
${wiki_to_html(context, ticket.description, escape_newlines=preserve_newlines)}
}}}
Also `py:choose` block has to be added into div-block near the end of file (see above template-snippet).
=== Component `CustomizedTicketView` ===
Small changes of ticket view.
Concretely:
* disables field `field-reporter`, so it cannot be changed anymore
* disables button `Reply`, so no comment could be made to any description
=== Component `SortMilestoneVersion` ===
Sorts drop-down lists of version and milestone.
=== Component `TicketNavigation` ===
Implements an extra Navigation menu by dividing the main ticket information in an several div areas an providing a "jump-to" to the anker with are represented in the navigation box.
=== Screenshots ===
[[Image(TextAreaDescription.png)]]
''Screenshot of `TextAreaDescription` (red box under Beschreibung aka description) and `HtmlContent` (Editor)''
[[Image(CustomizedTicketView.png)]]
''Screenshot of `CustomizedTicketView` -- creator "Ersteller" is disabled, so it cannot be changed''
[[Image(TicketNavigation.png)]]
''Screenshot of `TicketNavigation` -- list of headers are as toolbox under mainnav''
[[Image(SortMilestones.png)]]
''Screenshot of `SortMilestoneVersion` -- milestones are sorted by name regardless of their case (upper case "TBD" is next to lower case "tbd")''
[[Image(Sortversions.png)]]
''Screenshot of `SortMilestoneVersion` -- versions are sorted in alphabetical order instead of their due / completion date''
== Bugs/Feature Requests ==
Existing bugs and feature requests for TicketNavPlugin are
[report:9?COMPONENT=TicketNavPlugin here].
If you have any issues, create a
[http://trac-hacks.org/newticket?component=TicketNavPlugin&owner=framay new ticket].
== Download ==
Download the zipped source from [download:ticketnavplugin here].
== Source ==
You can check out TicketNavPlugin from [http://trac-hacks.org/svn/ticketnavplugin here] using Subversion, or [source:ticketnavplugin browse the source] with Trac.
== Example ==
=== Sample configuration of `TextAreaDescription` ===
{{{
descr_template =
%s
description_descr =
Folgende Fragen sollen beantworten werden:
}}}
=== Sample configuration of `HtmlContent` ===
{{{
[ticket]
description_format = html
editor_source = site/js/ckeditor/ckeditor.js
editor_replace =
additional_css = site/css/add_ticket.css
}}}
== Recent Changes ==
[[ChangeLog(ticketnavplugin, 3)]]
== Author/Contributors ==
'''Author:''' [wiki:framay] [[BR]]
'''Maintainer:''' [wiki:framay] [[BR]]
'''Contributors:'''