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

Alt Title for attachment

oloman

Active member
#1
Hello
In attached_files template,

I would like replace:

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

by:

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 ?

Thanks
 

oloman

Active member
#3
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.
 

Digital Doctor

Well-known member
#6
what title do you want to attach there?
attachments have no title
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 ? :)