1.1 --- a/actions/EventAggregatorNewEvent.py Sun Nov 18 00:17:20 2012 +0100
1.2 +++ b/actions/EventAggregatorNewEvent.py Sun Nov 18 19:22:17 2012 +0100
1.3 @@ -145,6 +145,13 @@
1.4
1.5 template_default = getattr(request.cfg, "event_aggregator_new_event_template", "EventTemplate")
1.6
1.7 + # Help page location.
1.8 +
1.9 + help_page_name = getattr(request.cfg, "event_aggregator_new_event_help", "HelpOnEventAggregatorNewEvent")
1.10 + help_page_url = Page(request, help_page_name).url(request)
1.11 +
1.12 + # Substitution of parameters.
1.13 +
1.14 d = {
1.15 "buttons_html" : buttons_html,
1.16 "form_trigger" : escattr(self.form_trigger),
1.17 @@ -221,6 +228,9 @@
1.18
1.19 "advanced_label" : escape(_("Show advanced options")),
1.20 "basic_label" : escape(_("Hide advanced options")),
1.21 +
1.22 + "help_page_url" : escattr(help_page_url),
1.23 + "help_page_label" : escape(_("Help on creating events")),
1.24 }
1.25
1.26 # Prepare the output HTML.
1.27 @@ -539,6 +549,12 @@
1.28 %(buttons_html)s
1.29 </td>
1.30 </tr>
1.31 + <tr>
1.32 + <td></td>
1.33 + <td colspan="2">
1.34 + <a href="%(help_page_url)s" target="_blank">%(help_page_label)s</a>
1.35 + </td>
1.36 + </tr>
1.37 </table>
1.38 <script type="text/javascript">
1.39 function replaceDialog(url, button) {
2.1 --- a/pages/HelpOnEventAggregatorNewEvent Sun Nov 18 00:17:20 2012 +0100
2.2 +++ b/pages/HelpOnEventAggregatorNewEvent Sun Nov 18 19:22:17 2012 +0100
2.3 @@ -56,6 +56,20 @@
2.4
2.5 If the action has been invoked by a link provided by a calendar, the `parent` parameter of the !EventAggregator macro may specify the default parent page for the new event. If no such parameter was used for the calendar, or if no calendar was involved (such as when the action is invoked from the editing menu), no parent page is chosen.
2.6
2.7 +== Overriding the Event Page ==
2.8 +
2.9 +To completely override the choice of event page, select the `Choose page name` button in the form, and then specify an appropriate name. The following variables can be used in the chosen page name:
2.10 +
2.11 +|| '''Variable''' || '''Description''' ||
2.12 +|| `@TITLE@` || The title or summary of the event specified in the form ||
2.13 +|| `@``PAGE@` || The current page name ||
2.14 +|| `@PARENT@` || The parent page for events as described above ||
2.15 +|| `@STARTDATE@` || The start date of the event having the form `YYYY-MM-DD` ||
2.16 +|| `@ENDDATE@` || The end date of the event having the form `YYYY-MM-DD` ||
2.17 +|| `@``DATE@` || A synonym for `@STARTDATE` ||
2.18 +
2.19 +As indicated initially, event pages have a page name of `@PARENT@/@TITLE@` unless this is overridden.
2.20 +
2.21 == See Also ==
2.22
2.23 * HelpOnEventAggregator - a macro producing event calendars and listings