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:
We can show/hide pages by using the checkbox provided by the Exclude Pages From Navigation plugin as shown below:
And we can control the order that child pages are displayed via the menu order option as shown below:
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:
We can show/hide pages by using the checkbox provided by the Exclude Pages From Navigation plugin as shown below:
And we can control the order that child pages are displayed via the menu order option as shown below: