Select specific row in hubDB

Hello everyone!

I’m currently working on a webpage where it’s supposed to be a section with some dynamic cards for products. The cards are already being retrieved from HubDB, but the thing is I need these cards to appear only if they’re associated with this specific webpage, and not for all products, meaning that the content should be retrieved from just one specific row.

I was thinking maybe there’s a way of getting the cards for related products only if the row name matches the webpage title itself (and not the row’s page title)?

Here are some screenshots:

 {% for row in hubdb_table_rows(5611783, query) %}
 <div class="col-12 col-sm-4 pb-5">
 {% module "module_16690500898232"
 path="/vg-theme/modules/vg-modules/vg-product-card",
 label="vg-product-card" %}
 </div>
 {% endfor %}

Thank you!

Hi, @FilipaPF :waving_hand: Were you able to make any progress on your project? If not, I can tag in some community members to see if they have built anything similar.

Best,

Jaycee

Hello @Jaycee_Lewis , I already fixed the issue, thank you :slightly_smiling_face:

I used dynamic_page_hubdb_row variable and eventually achieved the desired output!

Wonderful! Thanks for letting us know.

Have a great rest of your week :blush: — Jaycee