NHSLeadership / nightingale-wp

Other
1 stars 0 forks source link

[refs #di-1832] Display child pages #250

Closed Android63 closed 4 years ago

Android63 commented 4 years ago

This adds a short code so that we can display child pages in full on any parent page.

We need this so that we can use the parent/child structure for cohort information on the corporate website. The idea is that each cohort will have its own child page under the programme's key-information page.

At the moment, each cohort is listed as a content block on this page. The problem with this approach is that cohorts are deleted once applications close. Having them as separate pages allows us to keep the information available to applicants after applications close, but with the ability to exclude them from the parent page.

The result on a local test site looks like this:

Screenshot 2020-02-26 at 15 49 58

We can show/hide pages by using the checkbox provided by the Exclude Pages From Navigation plugin as shown below:

Screenshot 2020-02-26 at 16 00 16

And we can control the order that child pages are displayed via the menu order option as shown below:

Screenshot 2020-02-26 at 16 02 09