Support

Home Forums Event Espresso Premium Could you create ID=xxxx for capabilities in new EE versions, please?

Could you create ID=xxxx for capabilities in new EE versions, please?

Posted: August 3, 2012 at 2:38 pm


Jim Schuyler

August 3, 2012 at 2:38 pm

I have a client I’m developing for who wants to -hide- many EE capabilities at a very detailed level. For instance, when creating a new event we hide the ability to create a post. And we hide certain individual line-item capabilities on repeating events. We do this using CSS in a style sheet that we load when in the WP dashboard (that’s a long story, but it is doable and works fine) that makes -specific ID=””s invisible- on the EE admin pages.

However, not all EE capabilities in the interface(s) have unique IDs. For example, on the “Event Overview” when creating a new event, there is a panel “Event Options” and the “Attendee Limit:” and many other capabilities there are just LI (list items) or P (paragraphed) code with no unique ID.

I would like to ask if the EE development team, in the future, could please assign a unique ID=”” to each individual section of the interface that a developer might like to suppress through CSS hiding? Again, for example, in the “Event Options” this would be 1) Attendee Limit; 2) Allow Group Registrations; 3) Max Group Registrants:”; … and so forth. Ideally this would be done throughout all interfaces for all add-ons. I know that’s a big deal, but it would be a great help.

I know this will initially take a bit of effort, but it will make the interface vastly more customizable by developers, and might even be useful for the EE team as well. I know that hiding things is a kludge, but it’s been a “go or no-go” matter for me with a recent client, and we’re now doing this by hand within the EE code where we need it.

(Obviously we can doctor up the EE code ourselves to do this, but then whenever EE updates come out, we have to do code comparisons and alter dozens of lines in your new code. This is error-prone, even though usually we do things perfectly.)


Josh

  • Support Staff

August 3, 2012 at 2:51 pm

I’ll pass this on to the dev team.


Josh

  • Support Staff

August 4, 2012 at 11:45 am

Hey Jim,

Why not use the nth-child selector for now? This way, you would not need to add ID’s to the core markup. For example, if you needed to hide the attendee limit option, the style rule would be:

#event-status p:nth-child(1) {display:none;}

Your client would need to use a modern browser, but more and more, the WordPress admin interface is requiring the use of modern browser.


Jim Schuyler

August 6, 2012 at 10:18 pm

The CSS definitely works for now, thank you.


Jennifer Doyon

September 6, 2012 at 3:53 pm

Hi, Josh –

Could you please tell me more about using the nth-child selector to hide certain areas of the add a new event interface? Having tons of options that aren’t used will drive my staff crazy.

Thanks!

Jennifer


Jim Schuyler

September 17, 2012 at 2:05 pm

Did you get a reply to this? I’m too busy to give you much detail, but basically if you browse in Firefox and use Firebug or the built-in inspector you can look at the structure of a page and determine which ID=”” a particular capabilities lies within…then you can hide either the full ID (usually it’s on a DIV) or you can hide a table row (usually) that falls below it. Some things you cannot hide or EE breaks…for example if you’re creating repeating events, you have to have the registration dates visible or your user can’t create any repeating events. But -mostly- you will be able to hide things you don’t need. You’re going to use “display:none;” in you CSS because that way the space “compresses” and goes away, as opposed to “visibility:hidden;” which leaves the object on the page occupying space but not visible.


Jennifer Doyon

September 17, 2012 at 2:09 pm

Hi, Jim –

I did not receive a reply, so your advice is very welcome! I will give this a shot.

Thanks so much!

Jennifer

The support post ‘Could you create ID=xxxx for capabilities in new EE versions, please?’ 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