# Query subpages of selected page inside the same page

**URL:** <https://forum.getkirby.com/t/query-subpages-of-selected-page-inside-the-same-page/26976>\
**Category:** Questions\
**Tags:** v3\
**Created:** [November 8, 2022, 3:48pm UTC](https://forum.getkirby.com/t/query-subpages-of-selected-page-inside-the-same-page/26976 "2022-11-08T15:48:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mrfreedom](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mrfreedom/32/14018_2.png) [@mrfreedom](https://forum.getkirby.com/u/mrfreedom)\
**Post date:** [November 8, 2022, 5:03pm UTC](https://forum.getkirby.com/t/query-subpages-of-selected-page-inside-the-same-page/26976/5 "2022-11-08T17:03:50Z")

</div>

Hm, @texnixe I’ll try. I can solve this differently but wanted to see if it is possible. It seemed like it could work.

When you mention Programmatically changing blueprint, I have one that doesn’t work in Kirby 3.8.2 but it worked in Kirby 3.7

```auto
<?php

$work = site()->children()->findBy('intendedTemplate', 'work');
$minwidth = $work->coverWidth()->isNotEmpty() ? $work->coverWidth()->toInt() : '600';
$minheight = $work->coverHeight()->isNotEmpty() ? $work->coverHeight()->toInt() : '800';
$ratio = $work->coverRatio()->isTrue() ? '' : 'fixed';

return [
    'type' => 'image-clip',
    'clip' => [
      'minwidth' => $minwidth,
      'minheight' => $minheight,
      'ratio' => $ratio,
    ],
];

```

This is the field in the Project template that listens to the parent Work template setting. It influences the cropping size of the [Kirby3 Image Clip](https://github.com/mullema/k3-image-clip) plugin. But, for some reason, not anymore. It always uses 600 x 800 no matter what I do. Also, it doesn’t listen to ration setting.

But, maybe what you suggested [Programmatically change the content of the file field - #38 by bastianallgeier](https://forum.getkirby.com/t/programmatically-change-the-content-of-the-file-field/16892/38) could be the way to go for both issues.

---

_[View the full topic](https://forum.getkirby.com/t/query-subpages-of-selected-page-inside-the-same-page/26976)._
