Design and CSS styles
Version 6.x > Design and CSS styles > a question about designing a document type View modes: 
User avatar
Member
Member
steven4733-gmail - 12/14/2011 11:47:57 AM
   
a question about designing a document type
I developed a document which concludes name, description and photo field, and use repeater to show those team members in the page. However, I don’t know how to add their social media link as showed in blue circle in the following screen shot. How to add those link? I mean should I also add this in the document? What type of field should it be? Any idea?

User image

User avatar
Certified Developer 9
Certified Developer 9
charbf - 12/14/2011 12:29:12 PM
   
RE:a question about designing a document type
Hi,

Yes you need a way to put in the Unique id (facebook, linkedin, etc...) in you document. So you need to add some fields

To display the links/Icons you can use this code.

<%# IfEmpty(Eval("FaceBookID"), "", "<a target='_blank'  href='https://www.facebook.com/" + Eval("FaceBookID") + "'><IMG src='facebook.jpg'></a>") %>


each different social Site has it's own way of showing public profiles.

Francois

User avatar
Member
Member
steven4733-gmail - 12/14/2011 1:51:24 PM
   
RE:a question about designing a document type
Thank you.