Show Fields that are hidden in profile in a list

18 years 4 months 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

Please Log in to join the conversation.

18 years 4 months 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.

Please Log in to join the conversation.

18 years 4 months 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

Please Log in to join the conversation.

18 years 4 months 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.

Please Log in to join the conversation.

18 years 4 months 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

Please Log in to join the conversation.

18 years 4 months ago #913 by krka
Hi,

Thanx exactly the hack i was looking for.

FYI i submitted a feature request refering to this thread.

Krister

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.220 seconds

Facebook Twitter LinkedIn