ExpressionEngine 7.5 has been Released! Learn More!
I’m testing the new Members fieldtype in EE 7.4.4. I have the field set up and it’s working in the CP, except that it is very slow. It takes 8-10 seconds to open any of the entries in that channel, and that much time to save also. I have the Defer field initialization turned on as recommended, but makes no difference. Is there any way to speed this up? There are about 5,000 members.
I also want to try using this field in a channel form. But it is not displaying the member list in the options. The code I’m using for the field called ‘selected_member’ is as follows:
{exp:channel:form channel="boats" require_entry="yes" url_title="{segment_3}" include_assets="no" return="boats/edit-boat/URL_TITLE/updated"}
<select name="selected_member[data][]" id="selected_member">
{options:selected_member}
<option value="{option_value}"{selected}>{option_name}</option>
{/options:selected_member}
</select>
{/exp:channel:form
What should the correct code be?
Thank you
Set “Maximum number of available members” setting to a number. 100 would probably be good. You likely don’t want 5000 members to be fetched into options on each load.
The easiest way to display field in channel form is {field:selected_member}
. This is not select kind of fieldtype, so there is no {options:}
tag
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.