erdis Member Feb 28, 2023 #1 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}?
erdis Member Mar 18, 2024 #2 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}?
Jeremy P XenForo developer Staff member Mar 19, 2024 #3 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.
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.