forked from lcdservices/CiviEvent-Joomla-Module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_civievent.xml
139 lines (115 loc) · 6.62 KB
/
mod_civievent.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="1.6" method="upgrade" client="site">
<name>mod_civievent</name>
<author>Brian Shaughnessy</author>
<creationDate>August, 2011</creationDate>
<copyright>Copyright (C) 2005-2011 Open Source Matters. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>brian@lcdservices.biz</authorEmail>
<authorUrl>www.lcdservices.biz</authorUrl>
<version>3.1.0</version>
<description>Displays a list of upcoming events configured in CiviCRM. The module will also retrieve all custom data associated with the event and passes it to the module template file (tmpl/default.php). However, it does not display those fields, as they will be specific to your installation. Modify the module template file (which can be done via an override in your main Joomla template folder) to insert those additional fields as desired. Original version by Nakul Ganesh through the Google Summer of Code (2009) program.</description>
<files>
<folder>elements</folder>
<folder>tmpl</folder>
<filename>civievent.css</filename>
<filename>helper.php</filename>
<filename module="mod_civievent">mod_civievent.php</filename>
<filename>mod_civievent.xml</filename>
</files>
<config>
<fields name="params" addfieldpath="/modules/mod_civievent/elements">
<fieldset name="basic">
<field name="includecss" type="radio" default="0" label="Include CSS?" description="Indicates if the default module stylesheet should be injected into the rendering.">
<option value="0">No</option>
<option value="1">Yes</option>
</field>
<field name="noeventtext" type="text" default="No events were found" label="No Events Text" description="Text to be shown if no events are found. Leave blank for none."></field>
<field type="spacer" label="<b>Choose how events will be selected</b>" />
<field name="mode" type="list" default="0" label="Selection Mode" description="Choose event selection method">
<option value="0">Default</option>
<option value="1">Date Range</option>
<option value="2">Event Selection</option>
<option value="3">Event Type</option>
</field>
<field type="spacer" hr="true" />
<field name="privacy" type="radio" default="1" label="Privacy" description="Select Public or Private Events">
<option value="1">Public</option>
<option value="2">Private</option>
<option value="0">Both</option>
</field>
<field name="link" type="list" default="0" label="Link Destination" description="Link Destination Page">
<option value="0">Event Information Page</option>
<option value="1">Event Registration Page</option>
<option value="2">Event Information Page with Register Link</option>
</field>
<field name="modal" type="radio" default="1" label="Link Style" description="Select Modal Link or Normal Link">
<option value="1">Modal Popup</option>
<option value="0">Page Redirection</option>
</field>
<field name="maxevents" type="text" default="10" size="10" label="Maximum Events Listed" description="Maximum number of events to be listed."></field>
<field name="showdates" type="radio" default="1" label="Show Dates?" description="Indicate if you want the event dates listed.">
<option value="2">Only Start Date</option>
<option value="1">Yes</option>
<option value="0">No</option>
</field>
<field name="dateformat" type="text" default="m/d/Y" size="20" label="Date Format" description="Date display in PHP date format"></field>
<field name="summary" type="radio" default="1" label="Display Summary Text?" description="Do you want to include event summary text with the listing?">
<option value="1">Yes</option>
<option value="0">No</option>
</field>
<field type="spacer" hr="true" />
<field type="spacer" label="<b>Sort Options</b>" />
<field name="sort" type="radio" default="1" label="Sort By" description="Select Sorting options">
<option value="0">Title</option>
<option value="1">Start Date</option>
<option value="2">End Date</option>
</field>
<field name="sortop" type="radio" default="0" label="Sort Method" description="Select Sorting options">
<option value="ASC">Ascending</option>
<option value="DESC">Descending</option>
</field>
<field type="spacer" hr="true" />
<field type="spacer" label="<b>Mode: Date Range Options</b>" />
<field name="startdate" type="calendar" default="Select" label="Start date" description="" format="%d-%m-%Y" />
<field name="enddate" type="calendar" default="Select" label="End date" description="" format="%d-%m-%Y" />
<field type="spacer" label="<b>Mode: Custom Event Selection Options</b>" />
<field name="multievent"
type="eventlist"
default="0"
label="Select Events"
description="Select Events to be displayed"
multiple="multiple"
/>
<field type="spacer" label="<b>Mode: Event Type Options</b>" />
<field name="tid"
type="sql"
label="Event Types"
query="
SELECT civicrm_option_value.value, civicrm_option_value.label
FROM civicrm_option_value
INNER JOIN civicrm_option_group
ON civicrm_option_value.option_group_id = civicrm_option_group.id
WHERE civicrm_option_group.name = 'event_type'"
key_field="value"
value_field="label"
multiple="multiple"
size="8"
/>
<field name="itemid" type="menuitem" state="1" label="Menu Item" description="Select which existing menu item the search result links should be assigned to." />
</fieldset>
<fieldset name="advanced">
<field name="moduleclass_sfx" type="textarea" rows="3"
label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL"
description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" />
</fieldset>
<fieldset name="advanced">
<field
name="layout"
type="modulelayout"
label="JFIELD_ALT_LAYOUT_LABEL"
description="JFIELD_ALT_MODULE_LAYOUT_DESC" />
</fieldset>
</fields>
</config>
</extension>