Remove the Saved Organizer Dropdown from Community Submission Form

Home Forums Calendar Products Community Events Remove the Saved Organizer Dropdown from Community Submission Form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1014729
    jberg1
    Participant

    Hello,
    I’m wondering how to remove the Saved Organizers dropdown menu from the Community Submission form. What is discussed in this post no longer works because the organizer-fields.php template is no longer used.
    https://theeventscalendar.com/support/forums/topic/removing-saved-venue-organizer-from-community/#dl_post-87374

    Thanks for any help you can provide.

    #1014758
    Brook
    Participant

    Howdy Jberg,

    I’d be happy to help you gets some updated info. Thanks for sharing your research to date.

    There are two ways to hide it: CSS or by modifying a template. CSS is super easy but only hides it rather than preventing it from showing up in the code. This rule would hide it:

    .saved_organizer {display:none;}

    If you wish to do more than hide it, and truly remove it from the HTML, then you would want to modify this template by following our Themer’s Guide /the-events-calendar-community-events/src/views/community/modules/organizer.php. You will notice on line ~41 it calls Tribe__Events__Admin__Organizer_Chooser_Meta_Box to output the saved organizers and the other fields all in one chunk. The easiest way to modify its ouput and only output the new organizer fields would be to copy and rename that class (located: /the-events-calendar/src/Tribe/Admin/Organizer_Chooser_Meta_Box.php) and remove the saved organizer portion. Then in the organizer.php file I mentioned first, change it to use your new renamed class.

    Does that all make sense? Will that work for you? Please let me know!

    Cheers!

    – Brook

    #1015037
    jberg1
    Participant

    Hey Brook,
    Thanks for the reply. The CSS is always the easiest, I just feel like I’m cheating when I do that (ha!). That should be all I need to do, I was just concerned about it saying something like Organizer already exists if it matched an existing one. I can also hide the “Add Another Organizer” link in the same way.

    I also tried your other options and that worked just as well. Just needed to know a little more about how the back-end is working.

    Thanks for your help.

    #1015302
    Brook
    Participant

    For sure! I am happy to help. Definitely agree that it feels like cheating. One huge benefit in this case is that the CSS way is such a small modification it is even less likely to maintenance as we continually release plugin updates. Probably the way to go here.

    Thanks for getting back. let us know if you ever need anything else. Cheers!

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove the Saved Organizer Dropdown from Community Submission Form’ is closed to new replies.