How to link missing pages to a landing page

I have a landing page with sectors we service on it - however when adding new pages they dont seem to go onto this landing page.

There are 10 headers - however i have 15 pages.

Any idea why this would be happening or how i can link it so once a new page is posted it creates a new header to click on. (hopefully this makes sense)

Sectors We Service | Add Vision - UK Digital Signage Experts - this is the page, but if you click on sectors we service from the website and see a drop down you will see there are 15.

thanks

How exactly do you output this list of sectors on your page?
Do you use a snippet like getResources or pdoResources?
If you use such a snippet, you may have to add the property &limit=`0` to see all the results.

where would i find which one im using? sorry very basic on modx

Every website created with MODX is unique, so it’s difficult to give a general answer.

Open the “Sectors We Service” page in the manager and try to locate where the tiles for the services are output. If it’s not in the content of the resource or in any template variable, then take a look at the template the resource uses.

There is a dropdown that defines the template of a resource.
The actual template can then be found under the “Elements” tab.
Open the template in the manager and try to locate the position where the tiles are output. A template may contain tags like this [[$nameOfAChunk]] (with a $) that reference chunks with additional HTML code that get included into the template.

cant see anything for any of the template info - so would i need to look in elements tab?

The template used by this resource is called “Parent Listing Children”. (Look at the bottom right corner of the screenshot).

Yes, go to the “Elements” tab and take a look at the content of this template.

just deleting that section now :slight_smile:

This part in the template seems to output the tiles for the child resources.

Add &limit=`0` to the list of properties, to output all the children (and not just the first 10).

i really appreciate all your help here btw!

so adding: &limit=0 (do i add this to the end of &sort by? - thank you!

Yes, you can add it at the end like this:

[[pdoResources?
	&parents=`[[*id]]`
	&tpl=`children-grid-item.tpl`
	&includeTVs=`banner-image`
	&sortby=`{"menuindex":"ASC"}`
	&limit=`0`
]]

(The position isn’t relevant as long as it’s after the snippet name pdoResources? and before the closing brackets ]].)

that worked ! you are amazing thank you