Hi all,
As an exercise for myself in figuring out the new Custom Field API, I have produced a custom field type that adds a list of your current site members to your publish forms. It also allows you to display different aspects of the selected member’s data in your templates such as email, screen name, group title.
I thought I might as well share it in case someone finds it useful.
There are things that aren’t supported yet which I will be implementing such as restricting to member groups and returning custom member fields.
Tip of the hat goes to Leevi Graham’s Member List field type for EE 1.6.x which I have been using for a while now, and inspired the creation of this field type for EE2.0
Download: cki.member_list.ee_addon.zip
Docs: http://github.com/ckimrie/cki.member_list.ee_addon
UPDATE: 1.1 Separates the members into their respective groups in the publish form drop down list UPDATE 2 1.1.1 Fixed a bug for when using the single tag syntax in templates UPDATE 3 1.3 Bug fixes and compatibility changes for EE 2.0.2PB
Awesome Christopher. Did you submit this to Devot://ee?
Duh, nevermind. found it!.
Hi Christopher,
This is exactly what I need. Thanks.
Having a problem at the moment in that the {member_list} tag is not being parsed. The {if} logic is working and the {site_url} tag is being parsed, but not {member_list}.
<div class="uni_contact">
{if uni_contact==""}
<a href="mailto:[email protected]" class="contact_button" target="_blank" rel="noopener">Contact Us</a>
{if:else}
<a href="http://{site_url}member/email_console/{member_list}" class="contact_button" target="_blank" rel="noopener">Contact Us</a>
{/if}
</div>The whole thing is sitting between channel entries tags for the channel with the cki member list field in it.
Any thoughts? Thanks.
Hi I am trying to use this add on in a way I am no sure it is capable of but would love some feedback or advice.
I want to have two different authors added to a post and then allow only those two authors to be able to view the comments section of a post on the front end. I am trying something like this, but without success. Any advice would be wonderful!
{exp:channel:entries channel="listing" url_title="{segment_3}"}
{if logged_in_member_id == author_id OR logged_in_username == {member_list}"{screen_name}"{/member_list}}
Here are the comments on this listing.
{/if}
{/exp:channel:entries}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.