Displaying lists of people based on Start Date or End Date custom fields #505
Replies: 5 comments 4 replies
-
The eme_if shortcode works in the people list too, so something like this would work according to me. To show someone that currently started:
However, moving people leaving the company to another group seems way more efficient to me. EME can display groups of people using templates, so using another plugin to create a shortcode seems a bit weird ... |
Beta Was this translation helpful? Give feedback.
-
indeed, EME supports 15 levels of nesting (there's no such thing as if-then-else in shortcodes ...)
A CMS (content management system) is not really meant for what you're saying, but by using plugins WP has become so much more. That's also the reason I've built people/group and custom people fields into the system. You can even create a group and have fields only appear for people in that group (that's what I'm using for volunteer management and also for instructors and management of a non-profit). I'm glad to see someone else using EME for organisational purposes. |
Beta Was this translation helpful? Give feedback.
-
Just as this came in, I was trying a simple test, because your example wasn’t working for me.
Here’s what I did:
[eme_if tag="#_FIRSTNAME" value="John"] FN
[eme2_if tag="#_LASTNAME" value="Doe"] LN [/eme2_if]
[/eme_if]
#_FIRSTNAME _LASTNAME
This is what displays:
FN
[eme2_if tag=”Doe” value=”Doe”]LN[/eme2_if] John Doe
I’m clearly doing something wrong. (I updated the plugin earlier this week.)
Bruce
|
Beta Was this translation helpful? Give feedback.
-
Ah!! (I should have tried that, because I thought it would be more logical than eme2_if.)
From: Franky Van Liedekerke ***@***.***>
Sent: Thursday, March 28, 2024 11:59 AM
To: liedekef/events-made-easy ***@***.***>
Cc: Bruce Keplinger ***@***.***>; Author ***@***.***>
Subject: Re: [liedekef/events-made-easy] Displaying lists of people based on Start Date or End Date custom fields (Discussion #505)
NOTE: This message came from outside of the organization. Use caution with all attachments and links in this message.
it is eme_if2, not eme2_if (I corrected my comment above, typo)
—
Reply to this email directly, view it on GitHub<#505 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABJVIRGF3G53NBYBKELJSMLY2QV3PAVCNFSM6AAAAABFMBPZEKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNBSGYYDE>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the system manager. If you are not the named addressee, you should not disseminate, distribute or copy this email, and are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.
|
Beta Was this translation helpful? Give feedback.
-
I finally got this to work early last month. It took me some trial and error to re-reading of your comments that got me there.
This brings up another issue, but it's not related to this, so I'll submit another issue. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I have found this plugin to be very useful to display groups of people, such as employees or board members (I use very little of the event functionality, or for that matter, any of the other features of this plugin).
I have been grappling with how to display changing staff lists. I settled on creating a new group for a modified staff list (based on new employees or employees leaving) and using a plugin to create a shortcode controlling the display of the groups. This was clunky, at best, but it worked.
It occurred to me that if I had a start/end dates for people, I could control the display of individuals withing the group, so I added custom fields for People: Start Date and End Date.
If I have a Start Date for a person I want that person to display on or after that date, and if I have an End Date for a person I want that person to display on or before that date (of if it would be easier, I'd choose the End Date to be the day after the final day of employment, so that person would display before that date). So, I guess I want People to act like events in regard to the Start and End dates.
That's where I ran into a road block. I looked through the documentation but I couldn't find how to use these custom fields to control the display of a person. I saw where I could do this with Events, but not with a custom field for People.
Would such a thing be possible? I guess I can do this with JavaScript, but I'd like to do it with the the plugin itself, if possible.
Bruce
Beta Was this translation helpful? Give feedback.
All reactions