Support

Home Forums Pre-Sales Need additional details on Custom Files addon

Need additional details on Custom Files addon

Posted: January 22, 2013 at 9:10 am

Viewing 4 reply threads


Cynthia Closkey

January 22, 2013 at 9:10 am

Hi,

I have the Personal License and used the custom templates feature to modify how various pages look. (Nice feature!)

What I’d like to do though is change the order of things on the registration page more. Specifically, I’d like to have Add Attendees come right after the first attendee information and before any additional custom question groups.

Is this possible? Do I need the Custom Files addon for it?

I’m not clear on what the Custom Files addon does, and as many times as I read the description of it and the documentation of it I can’t get any clearer.

Thanks for your help.


Josh

  • Support Staff

January 22, 2013 at 3:48 pm

Hi Cynthia,

The custom files add-on is a convenient place to override core functions without directly editing core files. You can make any change to the core plugin without it, what the custom files add-on does is give you files to put the customizations so you don’t lose customizations when you update.

If the function that you’d like to change is pluggable, meaning it starts with something like:

if (!function_exists('espresso_event_function)){

The modified function can be copied over to the custom functions file and the code will execute from there instead of the plugin.

Moving on to the Add attendees question, it sounds like all you want to do is move some divs around. I would recommend trying this with some custom jQuery. This way you’re not changing the core functions of Event Espresso, but rather using JavaScript to move a few things around on the page. Here’s one tutorial that explains how to remove and move elements on a page with jQuery:
http://www.elated.com/articles/jquery-removing-replacing-moving-elements/


Cynthia Closkey

January 22, 2013 at 4:00 pm

That’s super helpful. Thanks!

So if I understand you correctly, the difference is that without Custom Files I can safely make changes to the template files in Event Espresso (confirmation_display.php, event_list.php, event_list_display.php, etc), but with Custom Files I can safely make changes to the core functions that those templates call?

(Where “safely” means in a way that allows for updates without having to reapply my changes.)

Thanks so much for your help.


Josh

  • Support Staff

January 22, 2013 at 4:19 pm

Hi Cynthia,

Almost, but not exactly with regards to “safely”. Your customizations will be safe from getting deleted on an update, but if the core function or the core template gets an update, you will still need to manually make transfer the updates that were made in core to your customized files. Some code editor software can help with this if they have a “diff” feature, and there is also the diffmerge program that can be used to compare files.


Cynthia Closkey

January 22, 2013 at 4:20 pm

OK, yes, that’s what I was thinking. Thanks for explaining it.

Viewing 4 reply threads

The support post ‘Need additional details on Custom Files addon’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso