Hi Michelle, just tried out this module for the first time the other day and I like it quite a bit. Step 10 in the installation instructions caught me a bit off guard however:
Navigate to ?q=admin/content/types/uprofile/display and change the labels to inline as needed. This is not carried over via content copy.
I looked and there doesn't seem to be a way to do this via content_copy, but I've been doing this with install profiles, and custom update scripts for sites using the Install Profile API. I think this simple function from crud.inc could help you solve this problem.
/**
* Set display settings for a field
* @param string $type
* @param string $fieldname
* @param array $display_settings
*/
function install_field_set_display($type, $fieldname, $display_settings = array()) {
db_query("UPDATE {node_field_instance} SET display_settings = '%s' WHERE type_name = '%s' AND field_name = '%s'",
serialize($display_settings), $type, $fieldname);
content_clear_type_cache();
drupal_set_message(st('Set display settings for field <em>@fieldname</em> for content type <em>@type</em>', array('@fieldname' => $fieldname, '@type' => $type)));
}
then, to use it, simple call it like this (with values adjusted as needed):
install_field_set_display('bio', 'field_contact_title',
array(
'label' => array(
'format' => 'inline'
),
'teaser' => array(
'format' => 'hidden'
),
'full' => array(
'format' => 'default'
),
)
);
I don't have time to cook up a patch at the moment but if I get a change I will try to do that. This snippet should help automate one of the installation steps, and as far as support requests go, that is always a good thing.
Comments
Comment #1
michelleThanks for this. You're right; reducing steps is always a good thing. I'll investigate adding this soon as I get a chance.
Michelle
Comment #2
michelleChanging status so I can find it when I work on the module again.
Michelle
Comment #3
michelleHaven't forgotten about this but I don't think it will make it into alpha 5. I think I have the dev pretty stable and will likely make an alpha later today. Then I'll see about adding more features.
Michelle
Comment #4
michelleThis issue is gone in D6 and, frankly, writing this up is more work than I want to spend on D5 at this point. Especially since it just saves a bit of mouse clicking. So, thanks for the suggestion, but I'm going to pass.
Michelle