Editing input data in the Single Events Calendar


(Jesstp) #1

Hi,

 

I'm building an events section on our site. My ideal would be to make a slight edit to the Single Events Calendar template so that on the first screen in Edit+ mode the user enters the existing information (Title, date and time) and the location would need to be added. I have done something different similar in a different job, but am unable to find the files to update.

 

Is this possible to do or would l need to update the Metadata Schema, apply a paint layout and CSS (effectively a lot more work)?

 

Thanks


(Bart Banda) #2

Is the location stored as a metadata field? If that's the case, you could potentially write a custom Edit+ plugin that adds the metadata input field on the details screen somewhere and when you save, you make a custom js api call to save that metadata field. Alternatively, add a custom text field and on submit add a post request that is then picked up by a trigger that updates the metadata field for you. 

 

You can find some information on how to create edit+ plugins here: https://matrix-manuals.squiz.net/edit-plus/chapters/javascript-plugins


(Jesstp) #3

The location wasn't on the event at all. I created a metadata field for the location, but as the styles have already been defined it looks out of place.

 

[attachment=800:events.PNG]

 

I would like to add it after the duration or even replace the duration wording with location and change it to an input field.

 

Is there an ideal way to set this up? Or just preference on how I want to do it?

 

Thanks events.PNG (46.8 KB)


(Bart Banda) #4

If you just want to control what it looks like on the front end you can use a paint layout to control that. https://manuals.matrix.squizsuite.net/asset-screens/chapters/paint-layouts

 

Is that what you are after? 


(Jesstp) #5

Thatnks Bart, I was thinking about trying to customise the Edit+ interface so that a user would just be on one screen to enter the information. But I think (if possible) it may be a lot of work for a little bit of ease. 

 

It may be more about how I set it up in the Metadata. Thank you for your help!