....when the user account is an organization and I want to show the picture field like an organisation image.

Any help will be appreciated.

Thanks heaps
Javier

Comments

scor’s picture

Version: 7.x-1.0-beta4 » 7.x-1.x-dev

The UI of this module doesn't let you customize the schema.org type for the user profiles, it assumes they are all schema:Person. That said you can override this if you manage your mappings with Features (which is recommended for managing configuration in Drupal 7). Create a feature with the "User: user" component in it from schema.org. In the example below, my feature is called 'testuser'. Then edit the testuser.features.inc file and look for this code:

/**
 * Implements hook_rdf_default_mappings().
 */
function testuser_rdf_default_mappings() {
  $schemaorg = array();

  // Exported RDF mapping: user
  $schemaorg['user']['user'] = array(
    'rdftype' => array(
      0 => 'schema:Person',
      1 => 'sioc:UserAccount',
    ),

Replace the rdftype section with:

    'rdftype' => array(
      0 => 'schema:Organization',
    ),

Essentially replace the schema:Person with schema:Organization. You can drop the sioc:UserAccount too.

javier.drupal.2012’s picture

Thanks for this Stéphane. I will check it out. At this moment I am not using features....is there any way to do it wihtout the feature module?

Thanks