Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Title says it all. I'd like to add an icon to each list item row that when clicked, performs the same function as the "Title (linked to item with edit menu)" i.e. it opens up the Flat or Threaded view for that subject.

Thanks!

share|improve this question

1 Answer 1

Can't you just use CSS on existing Title-columns, like this:

.ms-vb-title .ms-vb a {
  background-image: url(http://goo.gl/A444j);
  background-size: 16px;
  padding-left: 20px;
  background-repeat: no-repeat no-repeat;
}

If you use jQuery and want to instantly show the effect, run this:

$('.ms-vb-title .ms-vb a').css({
  backgroundImage: 'url(http://goo.gl/A444j)',
  backgroundSize: 16,
  backgroundRepeat: 'no-repeat',
  paddingLeft: 20
});
share|improve this answer
    
Thank you, I generally focus on the server-side of things and overlook client-side solutions. I will see if I can make this approach work. –  mikey Sep 27 '12 at 17:03
    
This way you attach this icon to all hyperlinks in the view body, not specifically to one new or existing column. And there's no control of what the link shall open. –  Alexey Krasheninnikov Dec 16 at 15:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.