Show Fields that are hidden in profile in a list

14 years 2 weeks ago #697 by krka
Hi,

I would like to hide some fields from users profiles but still make them available in the List Manager possibly for users that have higher priviledge than Registerd.

However as i can see as soon as i make a field unavailable in the Profile it also disapears from the fields to chose from in List Manager.

Krister
14 years 2 weeks ago #698 by nant
This is really a tips and trick post.

Ok, you can do what you want by following these steps:
  • Mark the field in question as 'show on profile'
  • Add the field to the list you want (via the List Management backend)
  • Go back to the field manager and makr the field as 'Do not show on profile'

I just tried it and it works just fine.
14 years 2 weeks ago #703 by krka
Hi,

Would work but it will also mean that private data is shown in profiles while doing the list editing.

I was more looking for a way to disable the hide from profile check inside list manager.

Krister
14 years 2 weeks ago #709 by nant
Yeah,
I guess during the 1-2 minute list editing process what you are saying is possible.
You can always put your site offline while you are doing this editing. But you are right - the correct way of doing it is as you describe. If you want please issue a feature request over at our project area on developer.joomla.com.
14 years 2 weeks ago #892 by JohnQM
Hi

I needed a way to make all fields available when creating a new list, wether or not those fields were hidden for profile.

I finally decided to hack the code so that all fields would always appear in the list management. Lists have access level settings, which is what I need to make those special fields only available to certain groups.

The hack is in
administrator\components\com_comprofiler\admin.comprofiler.html.php

// 22-11-2005 : Fabian : removed f.profile = "1" so we always have all fields when creating new lists
/*
$database->setQuery( "SELECT f.fieldid, f.title, f.name"
. "\nFROM #__comprofiler_fields f"
. "\nWHERE f.published = 1 AND f.profile = 1"
. $sqlWhere
);
*/
$database->setQuery( "SELECT f.fieldid, f.title, f.name"
. "\nFROM #__comprofiler_fields f"
. "\nWHERE f.published = 1"
. $sqlWhere
);


That's working fine for me.
J.

Post edited by: JohnQM, at: 2005/11/29 16:09
14 years 2 weeks ago #913 by krka
Hi,

Thanx exactly the hack i was looking for.

FYI i submitted a feature request refering to this thread.

Krister
Moderators: beatnantkrileon
Time to create page: 0.428 seconds

Facebook Twitter LinkedIn