Hi,
I'm trying to show only certain fields from the content profile on registration.

I have about 20 fields, and want to hide some of them. But when on the CP Reg UI, I only see two fields under "Hide these fields during registration". The two fields are ones I'm making dependent on others, using the Dependent fields D6 port patch here: #296351: Drupal 6.x version for this module.

I see now that daneyuleb in #13 of that issue cites a related (but different) problem.

Do you think the problem lies only in the Dependent Fields module (and if so, do you have any advice about how it could be modified to play nice with CP?),
or is there something to consider in Content profile as well to allow other mods like DF work well together?

Thanks :)
Scott

Comments

jgraham’s picture

I am not familiar with the dependent fields module, but I would suggest seeing how it manipulates the setting of #access on the widget

My guess is that it is clobbering the #access value as set by content_profile_registration.

daneyuleb’s picture

I don't see any explicit reference to #access in the dependent fields module for 6.x available at #296351: Drupal 6.x version for this module

Tried to poke around, but I'm not getting why the dependency works on the edit page, but not on the registration one--which is the problem I'm seeing. Beyond my meager abilities to figure out what's happening--seems like the dependent.js can't find the function that should have been created for the field, but that's about as far as I get.

The creator of the module doesn't seem to be actively working on it anymore, though, so it may remain unuseable on the with Content Profile on the registration page, which is too bad--it would be nice to have it.

scottrigby’s picture

Hi Guys,

A few quick things:

----
update - the initial issue I posted here seems to be partially fixed in the latest dev release
The checkboxes now show up for all my fields, regardless of their dependent module status.

----
I'm now seeing a different problem after the last CP dev release
...dealing with this issue #236926: Edit tab under main user profile page
See my comment #68
It seems related to this issue but not exactly the same...

----
Do you get the same results?
daneyuleb, I agree this would be nice to have working with CP! It's something I hear requested a lot, and I happen to need it right now as well.

I'm curious though - in your comment #15 at this issue #296351: Drupal 6.x version for this module
this was before the latest dev release of CP... do you now get the same results as i do? it seemed you were getting different results.

To clarify, it works just fine for me in the node itself, but not when viewed under the profile edit subtab (via CP) for my CP node.

Thanks for your replies - looking forward to finding a solution to whatever's happening here :)
Scott