Results 1 to 8 of 8

Thread: Public Fields / memberlist

  1. #1
    New user
    Join Date
    03-03-10.
    Posts
    2

    Default 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

  2. #2
    User
    Join Date
    10-05-10.
    Location
    Austin, TX USA
    Posts
    30

    Default Re: Public Fields / memberlist

    Did you ever figure this out? I have the same problem/question...

    Thanks,
    Greg

  3. #3
    User
    Join Date
    10-05-10.
    Location
    Austin, TX USA
    Posts
    30

    Default Re: Public Fields / memberlist

    nope, I'm guessing it's not possible... Anyone know for sure??

  4. #4
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

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

  5. #5
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default 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

  6. #6
    User
    Join Date
    10-05-10.
    Location
    Austin, TX USA
    Posts
    30

    Default 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

  7. #7
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

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

  8. #8
    User winanscreative's Avatar
    Join Date
    06-21-09.
    Location
    Massachusetts, United States
    Posts
    261

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •