CMS Development

Torsten_Utz
Contributor

access generated image tags via Hubl

SOLVE

Hello there,

 

is there an option to access the generated image tags in the file explorer via hubl and use them for filtering on a template page?

 

Thanks 

0 Upvotes
1 Accepted solution
ArisudanTiwari
Solution
Guide | Gold Partner
Guide | Gold Partner

access generated image tags via Hubl

SOLVE

Hi @Torsten_Utz ,

Currently, HubL doesn’t support accessing or filtering image tags directly from the HubSpot File Manager. These tags are mainly for organizing assets in the UI and aren’t exposed to HubL for use in templates.

If you want to filter images on a page based on tags or categories, the best approach is to manually manage metadata using HubDB or a custom module. You can store image URLs along with tag info in a HubDB table, then use HubL to filter and render them as needed.

If you absolutely need to pull tags from the file manager, you'd need to use the Files API outside of the CMS and sync that data into HubDB or module fields.

Helpful links:
https://developers.hubspot.com/docs/reference/cms/hubl/tags/standard-tags

https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/740484

If my reply answered your question, please mark it as a solution to make it easier for others to find.


Cheers!

Arisudan Tiwari
HubSpot Advisor



Grazitti

View solution in original post

0 Upvotes
1 Reply 1
ArisudanTiwari
Solution
Guide | Gold Partner
Guide | Gold Partner

access generated image tags via Hubl

SOLVE

Hi @Torsten_Utz ,

Currently, HubL doesn’t support accessing or filtering image tags directly from the HubSpot File Manager. These tags are mainly for organizing assets in the UI and aren’t exposed to HubL for use in templates.

If you want to filter images on a page based on tags or categories, the best approach is to manually manage metadata using HubDB or a custom module. You can store image URLs along with tag info in a HubDB table, then use HubL to filter and render them as needed.

If you absolutely need to pull tags from the file manager, you'd need to use the Files API outside of the CMS and sync that data into HubDB or module fields.

Helpful links:
https://developers.hubspot.com/docs/reference/cms/hubl/tags/standard-tags

https://community.hubspot.com/t5/CMS-Development/Add-Image-Title-Tag-to-Blog-Post-Images/m-p/740484

If my reply answered your question, please mark it as a solution to make it easier for others to find.


Cheers!

Arisudan Tiwari
HubSpot Advisor



Grazitti

0 Upvotes