CMS MADE SIMPLE FORGE

ListItExtended XDefs

 

[#9881] FEUDropdown Admin listing only shows first FEU

avatar
Created By: Prue Rowland (psy)
Date Submitted: Wed Mar 05 06:57:42 -0500 2014

Assigned To:
Version: 1.2
CMSMS Version: 1.11.9
Severity: Minor
Resolution: None
State: Open
Summary:
FEUDropdown Admin listing only shows first FEU
Detailed Description:
All records correctly show the selected FEU in the dropdown when editing an
individual record.

However when the FEU field is included in the item admin list (FEUDropdown
RenderForAdminListing($id, $returnid) method), only the first FEU username is
displayed for every record in the list.

Workaround was to:

1. create a new itemtab.tpl in module_custom/ListIt2MyModule/templates
2. in the template include {$uid=cms_utils::get_module('FrontEndUsers')}
3. In the custom fielddefs loop put:

                {if $fielddef->type == 'FEUDropdown'}
<td>{if
is_object($feu)}{$uid=$fielddef->value}{$feu->GetUserPropertyFull('firstname',$uid)}
{$feu->GetUserPropertyFull('lastname',$uid)}{/if}</td>
                
                {else}
<td>{$fielddef->RenderForAdminListing($actionid,
$returnid)}</td>
                {/if}

NB: above gives firstname and lastname FEU custom properties, not username.





History