0

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!

1 Answer 1

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
});
2
  • 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, 2012 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. Dec 16, 2014 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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