NHSLeadership / nightingale-wp

Other
1 stars 0 forks source link

Tkt 00037 - tabbed page navigation #112

Closed Android63 closed 6 years ago

Android63 commented 6 years ago

screen shot 2018-04-11 at 12 23 15

Android63 commented 6 years ago

I've simplified this a lot @cehwitham. It now works as follows:

Child pages are added by admins using the TabbedPage template, assigned to a Parent page and given an order in which to display: screen shot 2018-04-12 at 14 40 39

Links, in menus or elsewhere, are created by admins to the first child page rather than to the parent page: screen shot 2018-04-12 at 14 41 33

The result is the first child page is opened as a tab when the user clicks the link: screen shot 2018-04-12 at 14 40 04

Typically, the first child page will be titled something like "overview".

Android63 commented 6 years ago

I've changed this so it now displays the main parent page under the first tab, labelled "Overview", with child pages in the remaining tabs. Also added an extra level to breadcrumbs to include parent pages.

Initial (parent) page: screen shot 2018-04-13 at 11 56 52

Child page: screen shot 2018-04-13 at 11 57 11

@cehwitham could you review please?

Android63 commented 6 years ago

I've rationalised template parts as discussed @cehwitham. Could you please review again?