XF 2.2 Image alt tag in "lightbox_macros" file

erdis

Member
How can I make the image alt tags in the lightbox_macros file as {$thread.title}?

When I type {$thread.title} it comes up blank, it doesn't see it. Is there a solution to change {$alt|for_attr} to {$thread.title}?
 
How can I make the image alt tags in the lightbox_macros file as {$thread.title}?

When I type {$thread.title} it comes up blank, it doesn't see it. Is there a solution to change {$alt|for_attr} to {$thread.title}?
 
You would want to change the argument passed to the macro from its calling location (such as bb_code_tag_img), though the thread data might not be available there. You can {{ dump(vars()) }} to see what's available.
 
Top Bottom