Skip to content

Commit

Permalink
added categories to eventmenu modue
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin committed Jan 8, 2016
1 parent 9238e87 commit 643b9dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
mae_event_categories Changelog
==============================

Version 1.3.0 (2016-01-08) added categories to calendar and eventmenu modules
Version 1.2.0 (2015-12-16) added default categories in user/group
Version 1.1.0 (2015-08-25) added filter module
Version 1.0.3 (2015-06-02) hotfix model / namespace
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ customized places within contao
new field "Categories" in event header (tl_calendar_events)

- Themes / Frontend modules:
new field "Event categories" in frontend module eventlist (tl_module)
new field "Event categories" in frontend modules eventlist, calendar and eventmenu (tl_module)

- new Event Category filter module

Expand Down
1 change: 1 addition & 0 deletions dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// new categories blob field for use in standard eventlist module
$GLOBALS['TL_DCA']['tl_module']['palettes']['eventlist'] = str_replace(';{protected_legend:hide}', ';{event_cat_legend:hide},event_categories;{protected_legend:hide}', $GLOBALS['TL_DCA']['tl_module']['palettes']['eventlist']);
$GLOBALS['TL_DCA']['tl_module']['palettes']['calendar'] = str_replace(';{protected_legend:hide}', ';{event_cat_legend:hide},event_categories;{protected_legend:hide}', $GLOBALS['TL_DCA']['tl_module']['palettes']['calendar']);
$GLOBALS['TL_DCA']['tl_module']['palettes']['eventmenu'] = str_replace(';{protected_legend:hide}', ';{event_cat_legend:hide},event_categories;{protected_legend:hide}', $GLOBALS['TL_DCA']['tl_module']['palettes']['eventmenu']);
$GLOBALS['TL_DCA']['tl_module']['fields']['event_categories'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_module']['event_categories'],
Expand Down

0 comments on commit 643b9dc

Please sign in to comment.