# Dynamic page

**URL:** <https://community.hubspot.com/t/dynamic-page/65246>\
**Category:** CMS Development\
**Created:** [September 16, 2022, 8:05am UTC](https://community.hubspot.com/t/dynamic-page/65246 "2022-09-16T08:05:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MGheibi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mgheibi/32/75363_2.png) [@MGheibi](https://community.hubspot.com/u/MGheibi)\
**Post date:** [September 16, 2022, 8:05am UTC](https://community.hubspot.com/t/dynamic-page/65246/1 "2022-09-16T08:05:12Z")

</div>

Hello, I have a question and I’d be really grateful if help me.

I just have a question: I have two tables and join them together. the first table can have many children in the second table(one to many ORM), now I want to load the children of each parent(first table row) by parent’s ID. I mean that just the children of each parent load on the second linked page when I click on the parent name link.

for example First table row: Germany Second table row: Munich, Dusseldorf,… I want when I click on Germany just load The Cities of Germany. Not all the rows in the second table.

Here are my codes:

in parent module:

\<!DOCTYPE html\>  
\<html lang=“en”\>  
\<head\>  
\<meta charset=“UTF-8” /\>  
\<meta http-equiv=“X-UA-Compatible” content=“IE=edge” /\>  
\<meta name=“viewport” content=“width=device-width, initial-scale=1.0” /\>  
\<title\>Document\</title\>  
\<link rel=“stylesheet” href=“cities.css” /\>  
\</head\>  
\<body\>  
\<div class=“gallery”\>  
\<div class=“octagon”\>  
{% for row in hubdb\_table\_rows(5481009) %}  
\<div id=“octagon”\>  
{% if module.image\_field.src %}  
{% set sizeAttrs = ‘width=“{{ module.image\_field.width }}” height=“{{ module.image\_field.height }}”’ %}  
{% if module.image\_field.size\_type == ‘auto’ %}  
{% set sizeAttrs = ‘width=“{{ module.image\_field.width }}” height=“{{ module.image\_field.height }}” style=“max-width: 100%; height: auto;”’ %}  
{% elif module.image\_field.size\_type == ‘auto\_custom\_max’ %}  
{% set sizeAttrs = ‘width=“{{ module.image\_field.max\_width }}” height=“{{ module.image\_field.max\_height }}” style=“max-width: 100%; height: auto;”’ %}  
{% endif %}  
{% set loadingAttr = module.image\_field.loading != ‘disabled’ ? ‘loading=“{{ module.image\_field.loading }}”’ : ‘’ %}  
\<img class=“imgview” src=“{{ module.image\_field.src }}” alt=“{{ module.image\_field.alt }}” {{ loadingAttr }} {{ sizeAttrs }}\>  
{% endif %}  
\<h3\>{{ row.Bundesland }} \</h3\>  
\<p\>  
{{ row.Landkreis }}  
\</p\>  
\<a href=“” class=“btnview”\>show childs\</a\>  
\</div\>  
{% endfor %}  
\</div\>  
\</div\>  
\</body\>  
\</html\>

in child module:

\<!DOCTYPE html\>  
\<html lang=“en”\>  
\<head\>  
\<meta charset=“UTF-8” /\>  
\<meta http-equiv=“X-UA-Compatible” content=“IE=edge” /\>  
\<meta name=“viewport” content=“width=device-width, initial-scale=1.0” /\>  
\<link rel=“stylesheet” href=“subcities.css” /\>  
\<title\>Document\</title\>  
\</head\>  
\<body\>  
\<div class=“rowoctagon”\>  
{% for row in hubdb\_table\_rows(5484646, queryparam) %}  
\<div class=“ort”\>  
\<div class=“ort-content”\>  
\<h1\>  
{{ row.name }}  
\</h1\>  
\<p\>  
{{ row.Description }}  
\</p\>  
\<a href=“”\>click here\</a\>  
\</div\>  
\</div\>  
{% endfor %}  
\</div\>  
\</body\>  
\</html\>

Thank you

Maryam

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [September 19, 2022, 5:25pm UTC](https://community.hubspot.com/t/dynamic-page/65246/2 "2022-09-19T17:25:56Z")

</div>

Hi, @MGheibi 👋 Thanks for your question! Hey, @LMeert @Anton, do you have any thoughts on how to approach what @MGheibi is asking here?

Best,

Jaycee
