We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Members fieldtype issue and question

Development and Programming

susanfw's avatar
susanfw
62 posts
one year ago
susanfw's avatar susanfw
  1. 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.

  2. 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

       
Yuri's avatar
Yuri
315 posts
one year ago
Yuri's avatar Yuri
  1. 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.

  2. 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

       
susanfw's avatar
susanfw
62 posts
one year ago
susanfw's avatar susanfw

Thank you, Yuri. That fixed both of my problems. The field loads quickly now. I just need to get the channel form field styled.

       
pitchstroke's avatar
pitchstroke
1 posts
one year ago
pitchstroke's avatar pitchstroke

<select name=”selected_member[data][]” id=”selected_member”> {options:selected_member} <option value=”{option_value}”{selected}>{option_name}</option> {/options:selected_member} </select>

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.