I'd like to display an icon w/the "discuss this" teaser link. Not sure how to do it. Can anyone point me in the right direction? Can that be done in the CSS somewhere?

Comments

designguru’s picture

I also have been looking for a way to implement this - any plans to include it in the module? Any way to easily patch/hack the current 5.x module to do it?

q./

designguru’s picture

Any updates on this? I'm sure I could include a discuss link in teasers on a theming level but am unclear as to how I would do that... Any help would be appreciated!

q./

aharown07’s picture

Haven't tried any of this yet but see http://drupal.org/node/77634
Apparently there are ways to do this w/CSS as well as in the PHP, if you can figure it out.

The PHP code solution doesn't look all that hard, but I don't really know how to do it as a function override (rather than editing the module directly) so if anyone's got tips on that, would much appreciate. Don't know what I'm missing, but so far none of my override attempts have worked. Only overrides I've gotten from others have worked. So still apparently not clear on concept.

spiderman’s picture

The Discuss This link is generated by the hook_link hook, so you /could/ modify it using the hook_link_alter hook.

However, if you are simply wanting to add an image, I'd recommend just using CSS, as sepeck suggested on the thread mentioned above. The link is output something like:

<li  class="last discussthis"><a href="node/31" class="discussthis">Discuss This!</a></li>

So you could use a technique similar to the one seen here to add images to <li> or <a> items with a class of 'discussthis'. I'm not a CSS guru at all, but I'm sure there are many other examples a simple google search would turn up on how to place icons next to links using CSS :)

Hope that helps.

spiderman’s picture

Status: Active » Closed (fixed)