1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Alt Title for attachment

Discussion in 'Styling and Customization Questions' started by oloman, Apr 11, 2012.

  1. oloman

    oloman Active Member

    In attached_files template,

    I would like replace:

    src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}"


    src="{$attachment.thumbnailUrl}" alt="{xen:raw $title}"

    But the title is not displayed inside the Alt :(
    Do you have an idea how to place title thread into alt ?

  2. ragtek

    ragtek Guest

    what title do you want to attach there?
    attachments have no title
  3. oloman

    oloman Active Member

    We can add everything in a Alt=" ", I want the thread title inside, but it doesn't work.

    Alt is to help google to understand what is the attachment, often Alt="055464.jpg" doesn't help google, but the thread title yes.
  4. ragtek

    ragtek Guest

    ok thread title should be {$thread.title}
    oloman likes this.
  5. oloman

    oloman Active Member

    It works:)thanks !
  6. Digital Doctor

    Digital Doctor Well-Known Member

    They don't ?
    Why ?

    Isn't that a major SEO loss ?

    When I upload an image like: xenforo.vs.IPB.vs.vBulletin.a.comparison.of.CMSes.png .... is that nice filename not used in SEO ? :(

    How are people going to find a cool picture of mine and PINterest it ? :)
  7. oloman

    oloman Active Member

    If the filename is good, it's ok.
    but 01235.jpg ...

Share This Page