Public Fields / memberlist
Hi all,
I've used xtmembers and xtmembers_fieldeditor to create a registration page, but now I want to show the members using a Member List module and it only shows members with Public Fields selected. I don't want the user to have to tick these fields on sign-up, and it seems like a hassle for the administrator to do it manually after registration - can anyone tell me how to change the default for Public Fields when members register?
Thanks for any help.
Phil
Re: Public Fields / memberlist
Did you ever figure this out? I have the same problem/question...
Thanks,
Greg
Re: Public Fields / memberlist
nope, I'm guessing it's not possible... Anyone know for sure??
Re: Public Fields / memberlist
It'll be possible.
read http://www.contao.org/adding-custom-fields.html and http://www.contao.org/custom-configurations.html
You just need to figure out which fields you need to modify the default value for.
Re: Public Fields / memberlist
Try adding this line into system/dcaconfig.php
Code:
$GLOBALS['TL_DCA']['tl_member']['fields']['workscope']['eval']['feViewable'] = true;
and repeat, replacing workscope with the name of each field you want publicly viewable.
This may or may not work
Re: Public Fields / memberlist
Unfortunately that did not work :(
I tried adding this to the system/config/dcaconfig.php :
Code:
$GLOBALS['TL_DCA']['tl_member']['fields']['firstname']['eval']['feViewable'] = true;
but the field did not show up on the fe
Any other ideas?
Thanks,
Greg
Re: Public Fields / memberlist
No sorry Greg,
I had a quick look at the modules involved but as they seem to modify others and I've not used them its all too complicated for me I'm afraid.
It may be that they are serialized in a blob, and can only be altered by altering the routine that outputs them... i'm just not sure.
Re: Public Fields / memberlist
Two things come to mind, depending on your skillset in building modules:
1. Create a custom MemberList module. You'd need to edit the section of code that unsets the values for the member's publicFields (lines 244-270).
2. Try using the 'Listing' module with the tl_members table. I've never tried this but it is always a handy way to display whatever data you want. Just define the fields you want to use.