Joe,
To add your own custom fields, it's a multi-step (but hopefully, not too confusing) process.
* Edit the /administrator/components/com_jlinked/models/config.php file. Half way down you'll see the definitions for all the fields we currently import.
Above: 'three-current-positions.0' => 'Current Position - 0 - Summary',
Simply add: 'current-position-title.0' => 'Current Position - 0 - Title',
The first portion (current-position-title) is completely user-defineable and will be needed later. The 0 is the index of the position, so 0 would be the current/most recent job. 5 would be the 5th job in the user's profile.
* Edit the /components/com_jlinked/libraries/jlinkeddata.php file. Search for "case 'three-current-positions.0'. Add a new section above that, like:
case 'current-position-title.0':
$index = intval($valueParts[1]);
$newValue = $this->_getPositionTitle($element, $index);
return $newValue;
case 'three-current-positions.0': // Already there
case 'three-current-positions.1': // Already there
Then, you'll need to create the "getPositionTitle" function. Copying the "getPosition" function and making a quick modification, it looks like:
function _getPositionTitle($element, $index)
{
$newValue = '';
if (isset($element->position[$index]))
{
$position = $element->position[$index];
$newValue = $position->title;
}
return $newValue;
}
Hope that helps. It's a bit complex, but hopefully isn't too confusing.
Thanks,
Alex