How do I get a list of landing pages based on a "tag" in HubL? Similar to blog listing based on tag.

I have a request to create a widget in our pages that contain a certain set of langing pages as a list in the html.

Is there a way to get a list of pages based on a “tag” of sorts. In particular we have many landing pages.

With each blog post we have, we want to link to these landing pages that apply to a certain set of tags created in the blog.

Is this something we can do in hubl?

@encompass Your best bet would be to pay for the CMS add-on and use a HubDB table to categorize your Landing Pages and build a module that queries the HubDB table and filters on a column value (tag). To my knowledge you won’t be able to use HubL by itself in what you’re trying to do.

HubL is a templating language and doesn’t have direct access to the underlying database structure HubSpot portals sit on top of. Thats kind of why they created HubDB - for people who needed more dynamic/structured content on a page-by-page basis.

Hi @encompass ,

@derekcavaliero has the best solution, and using a HubDB table would allow you to store other assets and information with the landing page link and topic so customization options are endless.

If you don’t have HubDB in your portal, would suggest a global custom module. You would need to manually gather and organize the landing page links by “topic”, and create a series of simple menus, one for each “topic”. You could then create a choice field, th value of which would determine which menu shows on the post’s page. Unforutanely site pages and landing pages do not have topics and cannot be access through an aggregate variable like blog posts.