Home › Forums › Calendar Products › Community Events › Creating separate submission forms for different categories
- This topic has 3 replies, 2 voices, and was last updated 5 years, 7 months ago by Andras.
-
AuthorPosts
-
September 21, 2018 at 2:26 am #1627134hannujaatinenParticipant
Hi,
We have a great association registry / event site but now we need to add a new event category to the site, and it should have it’s own separate submission form.
I’ve read some previous threads on the topic and I know that I can customise the categories shown on the Community Events submission form but it is possible to create two (or 3 or 4 in the future) submission forms for different categories?
This would allow us to make it impossible to forget selecting the right category, i.e. to improve usability?
September 21, 2018 at 12:43 pm #1627905AndrasKeymasterHi hannujaatinen,
Thanks for reaching out!
Wow, that is something.
Out of the box that is not possible, but with some custom development and template override I guess it could be possible.
One of the approaches could be the following:
Create a template override of the submission page.
Create a parameter check at the beginning of the file what version is loaded. The forms / page could be loaded with different parameters, like:
http://domain.com/events/community/add?version=1
Depending on the version load different rules / fields / categories, whatever you need.
Does this help you get started with this?
I can customise the categories shown on the Community Events submission form
Out of curiosity, can you share those threads of the snippet here with me?
Thanks and cheers,
AndrasSeptember 21, 2018 at 2:11 pm #1627984hannujaatinenParticipantI’ve modified the Community events submission form already (quite a lot) but how do I do this part?
Create a parameter check at the beginning of the file what version is loaded. The forms / page could be loaded with different parameters, like:
http://domain.com/events/community/add?version=1
Depending on the version load different rules / fields / categories, whatever you need.September 24, 2018 at 2:37 am #1628896AndrasKeymasterSomething with this: http://php.net/manual/en/reserved.variables.get.php
<?php if ( $_GET['version'] == 'signup' ) { do this... } elseif ( $_GET['version'] == 'registration' ) { do that... } else { do something else... } ?>
And then the urls would need to be like:
http://domain.com/events/community/add?version=signup
http://domain.com/events/community/add?version=registrationDoes this help?
A.
October 16, 2018 at 9:35 am #1643790Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Creating separate submission forms for different categories’ is closed to new replies.