rejetto forum

view %item-comment% in tooltip

radd · 6 · 1326

0 Members and 1 Guest are viewing this topic.

Offline radd

  • Tireless poster
  • ****
    • Posts: 145
    • View Profile
from what i understand, let say i want comment of an item to come out in tooltip as i mouseover on the icon for example. i can use <img src="image.gif" title="%item-comment%" />.

however not work by this way. the tooltip show %item-comment%, not the comment.

do i have to put %comment% instead of %item-comment% but i believe tihs way will not work for my template (terayon) since %comment% defined as

[comment]
<div class=comment>%item-comment%</div>

but alt or title should only be in normal text.

are they any way to do this? That Steven Guy, you said u have javascript that can do this trick, can u show it to me?

and last, if an item do not have comment, can we prevent tooltip from showing or can we set it to show "no comment" ? hehehe.. too much to ask.. sorry guys. thanks


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13260
    • View Profile
if you want %comment% to be normal text, then go in the [comment] and remove the <div>, leave only text %item-comment%


Offline radd

  • Tireless poster
  • ****
    • Posts: 145
    • View Profile
i assume that could solve this prob, however i try avoid doing this because i afraid this will affect the template look. but i believe the div can be put before %comment% in [file] instead of having them under [comment].

ok la, i will try as u say. thanks


Offline radd

  • Tireless poster
  • ****
    • Posts: 145
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13260
    • View Profile
sure, the point is: if there is no comment, the [comment] section is not used at all.


Offline radd

  • Tireless poster
  • ****
    • Posts: 145
    • View Profile