Jump to content

Recommended Posts

Posted

Good Evening. Would someone be able to explain to me how the events widget works and how I can create a page showing all the events upcoming. I have read and tried to understand the API key, and what goes where, but I just don't understand it, so a quick guide on how to set up events using this module would be awesome. Thanks for your help!

  • Administrators
Posted
29 minutes ago, 4JSL said:

Got this working. Had to edit line 16 of the events module to hard code a prefix, and it worked.

 

Care to share exactly what you edited for other users that may want to do the same?

Posted (edited)
9 hours ago, 4JSL said:

Got this working. Had to edit line 16 of the events module to hard code a prefix, and it worked.

 

Technically there is/was no need to edit the widget itself, the event "route code" is defined at module admin area and it works both for API endpoint and Event Widget.

 

image.png.be1d2548719990ed5b2942032c9b8a7e.png

 

image.png.0f6fcd35caf1eabc4f2e3298d08aa6c8.png

 

No need to edit/alter line 16 of the widget controller as it simply reads the above definition.

 

image.png.9fc123a2b6fadb73068a6958bff4a75c.png

 

Edited by DisposableHero
  • Like 1
Posted
32 minutes ago, DisposableHero said:

 

Technically there is/was no need to edit the widget itself, the event "route code" is defined at module admin area and it works both for API endpoint and Event Widget.

 

image.png.be1d2548719990ed5b2942032c9b8a7e.png

 

image.png.0f6fcd35caf1eabc4f2e3298d08aa6c8.png

 

No need to edit/alter line 16 of the widget controller as it simply reads the above definition.

 

image.png.9fc123a2b6fadb73068a6958bff4a75c.png

 

I tried to edit the prefix in the Module Admin and it gave me an error, stating that there was an issue in line 16. This made my dashboard display a server error. The log confirmed line 16 so I changed the variable to be hard coded instead of using from the module admin and that seemed to solve the issue 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...