@ Linda
The name link is reserved for linking directly to the profile page, as you know. Changing this will require editing the card.php file found in this folder for cMap:
../wp-content/plugins/connections-cmap/
You need to look for this line.
<h3><?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => $atts['link'] ) ); ?></h3>
The first change you need to make is this:
<h3><?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => FALSE ) ); ?></h3>
After this, it gets hard (depending on your skill with PHP). YOu need to decide if you want to save this link as a Link field type (a standard field in Connections) or a custom field.
I think I would suggest a custom field. Here’s a link to a tutorial on how to add a text field custom field.
Instead of displaying the custom field you would save the value (the URL) into a variable to be used has the href attribute in the link. Something like this:
$url = $entry->getMeta(
array(
'key' => 'field_id', // This should match exactly the field id used when registering the custom field.
'single' => TRUE // Do not change this.
)
);
Then you would change the name block to something like this:
<h3><a href="<?php echo esc_url( $url ); ?>"><?php $entry->getNameBlock( array( 'format' => $atts['name_format'], 'link' => FALSE ) ); ?></a></h3>
This is all untested but it should get you started along the right path.
Hope this helps!
ps. If you are going to alter the template file, you should review this tutorial on custom template override files.
