I want to show one field (file type) twice in the same content type (without display suite as it breaks my other modules). After a user uploads a pdf and saves this content. I want one link to lead to pdf file for download(which it does) and the other link to show generic file (open a pdf in browser) and i dont know how to do that part (To change widget type). I have searched Drupal Answers and found some clues on how to do this in template.php
function bsthemel_preprocess_field(&$vars) {
$node = $vars['node'];
if($vars['element']['#field_name'] == 'field_document_pdf') {
//code to copy and render this field with different widget (havent figured out how yet)
}
Now i am still new to drupal and can't seem to figure this out. Also what i have found is function hook_field_widget_form_alter
but i think this has to be done after the new field is made. Or i might look at this completely wrong. Any help is appriciated