FrontEndUsers Additional Properties in Admin Template Topic is solved

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
webform
Power Poster
Power Poster
Posts: 503
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

FrontEndUsers Additional Properties in Admin Template

Post by webform »

Is it possible to have Additional Properties in in the admin user list template without the user need to Select Additional Properties to View?

I have some specific properties i would like to have permanently fixed in the FEU user list in admin and in a specific order.

I know i can call properties directly with {$entry->extra.fieldalias->val}, but only if the same property is already selected in "Additional Properties".

Maybe it's not possible only customizing the userlist.tpl template?
MarcG
New Member
New Member
Posts: 4
Joined: Mon Jan 25, 2021 4:10 pm

Re: FrontEndUsers Additional Properties in Admin Template

Post by MarcG »

You should be able to choose additional fields in the Filter -- choose View Filter, and there's a list on the right. Ctrl-click to select more than one.
User avatar
webform
Power Poster
Power Poster
Posts: 503
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: FrontEndUsers Additional Properties in Admin Template

Post by webform »

Thanks! But that is not what i'm asking ;)

I want to have a default preset of properties in a specifik order in the user view template WITHOUT having to select them first in "Additional Properties to View".
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1786
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: FrontEndUsers Additional Properties in Admin Template

Post by DIGI3 »

You should be able to edit the module's template to make it do what you want. Use the module_custom folder so it doesn't get deleted on upgrade (see https://cmscanbesimple.org/blog/cgblog- ... provements - different module but same concept)
Not getting the answer you need? CMSMS support options
User avatar
webform
Power Poster
Power Poster
Posts: 503
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: FrontEndUsers Additional Properties in Admin Template

Post by webform »

I've been playing around with FEU userlist.tpl template in the module_custom folder, but it's seems like this particular function i want to change is handled in the function file and not in the template.

So it seems like i'm stuck with how to handle Additional Properties in the user list.
User avatar
webform
Power Poster
Power Poster
Posts: 503
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: FrontEndUsers Additional Properties in Admin Template

Post by webform »

Follow Up:

I've kinda solved it in the userlist.tpl template whitout "hacking" the core files;

Code: Select all

{assign var=preselect value=[myfieldalias1,myfieldalias2,myfieldalias3,myfieldalias4]}
{html_options options=$alldefns selected=$preselect}
And set the select to display:none, so users can't change the selected properties.

In the foreach i place my fields in the order i need/want:

Code: Select all

{$entry->extra.myfieldalias1->val} etc.
First time users have to apply filter on first use (Or the admin creating an account does is), but hereafter the userlist is displaying the needed fields in order.

Not the most elegant solution, i know, but it get the job done!
Post Reply

Return to “Modules/Add-Ons”