• Hello
    I have installed and using Connections just fine but i need to change the output names og “Cellphone” and “workphone” “personal email” etc.
    i found some code in another topic and the topic auther confirmed it was working so i guess its just me 😉 need to know exactly which file i need to change or paste this into to get it to Work. link to previous topic is coming here after and also the code that should be working…. hoep some one can help me 🙂

    Topic

    if ($entry->getPhoneNumbers())
    {
    echo ‘<div class=”phone-number-block” style=”margin-bottom: 10px;”>’ . “\n”;
    foreach ($entry->getPhoneNumbers() as $phone)
    {

    switch ($phone->type)
    {
    case ‘homephone’:
    $phone->name = “Phone”;
    break;
    case ‘homefax’:
    $phone->name = “Fax”;
    break;
    case ‘cellphone’:
    $phone->name = “Cell Phone”;
    break;
    case ‘workphone’:
    $phone->name = “Phone”;
    break;
    case ‘workfax’:
    $phone->name = “Fax”;
    break;
    case ‘fax’:
    $phone->name = “Fax”;
    break;
    }

    //Type for hCard compatibility. Hidden.
    if ($phone->number != null) echo ‘‘ . $phone->name . ‘: <span class=”tel”>’ . $entry->gethCardTelType($phone->type) . ‘<span class=”value”>’ . $phone->number . ‘</span></span>
    ‘ . “\n”;
    }
    echo ‘</div>’ . “\n”;
    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Connections]’ is closed to new replies.