My requirement is that in my custom content type page, I need to add fields that link to facebook and twitter. This is easily do-able as two textboxes which contain the hyperlinks to the two site urls. However the way I want it is that, if there is a facebook URL added, in the display it should show a facebook icon clicking on which will take the user to the facebook URL, same with twitter. (It is not for sharing my page content in facebook, but for redirecting the user to facebook link provided - same with twitter)
I would like these two to be two standard fields in the content type so that added links to these two will trigger this behaviour. If the textboxes are empty, the icons will not show up.
Any pointers on how this can be achieved? I looked at the various social share modules in drupal, but most of them are for sharing/tweeting the page inside which they are added.
I appreciate any help...