Essentially, you’ve just hit the "web users can’t update snippets or chunks, and a TV is inappropriate as it needs to be the same on all pages" flaw.
There are numerous workarounds but I can’t give you the precise details right now because my girlfriend wants to nick the laptop, but that’s the thing to do.
Can you tell me: is the user is just typing names in, or selecting them from an existing db?
Thanks Paul. At this stage the web user will be typing in the driver names and circuit name, and the date if this is easiest.
Edit: I’ve temporarily inserted the real details into the podium box for now (just in case you’re wondering how they got there!).
-
☆ A M B ☆
- 24,524 Posts
Of course they can... with a bit of coding and database management. I would presume this data is in a custom table? Have a snippet that checks the user’s web groups ($modx->isMemberOfWebGroup($array-of-group-names)) then uses the incoming form data to update the table. You can generate the form by querying the table to make a drop-down of driver names to select, an input to add a new driver, and even use the cute little javascript calendar for them to select a date. It would be fun making an Ajax app out of it!
As far as web users updating snippets or chunks or documents, it’s only data in the database. A query will retrieve or add or modify the data, you just need to write the code to do so.
Thanks Susan - all makes sense to me. Thanks for the pointers.
As for Ajax, I don’t have a clue how to do that. But I assume building a ’standard’ version of the functionality is a good place to start?
The members are all part of an SMF forum, so hopefully I’ll be able to include the member names from that in my form.
Any other advice welcome, of course.