osseed / com.osseed.eventcalendar

CiviCRM Event Calendar
GNU General Public License v3.0
10 stars 36 forks source link

Version 4.0 front-end view does not work on Joomla #83

Closed webmaster-cses-org-uk closed 3 years ago

webmaster-cses-org-uk commented 3 years ago

Version 4.0 front-end gives a permission error on Joomla.

Issue appears to be related to joomla/EventCalendar/tmpl/default.xml: <field name="task" type="hidden" default="civicrm/showevents?id=" />

'id' needs to be a separate parameter (cannot chain URL parameters in single field, especially as it would need to be & not ?, but in any case don't think this is legal in Joomla).

Suggestion: <field name="task" type="hidden" default="civicrm/showevents" /> <field name="reset" type="hidden" size="5" default="1" /> <field name="id" type="hidden" default="1" /> (setting id as required)

NOTE: need to update documentation to tell users to add their settings ID to this file after copying to Joomla components directory (or make this a drop-down field in Joomla menu configuration), AND need to add ID to url in CiviCRM back-end menu.

osseed commented 3 years ago

@webmaster-cses-org-uk We will check this and get back to you. Which version of Joomla and CiviCRM you'r using?

webmaster-cses-org-uk commented 3 years ago

Thanks :)

Joomla = 3.9.8 CiviCRM = 5.33.1

pranav45 commented 3 years ago

@webmaster-cses-org-uk Thanks for the solution. As per your suggestion, we have fixed the issue and committed under the master branch. We will add these fixes under the new release.