diff --git a/content/.yaml b/content/.yaml new file mode 100644 index 0000000..a7e65f7 --- /dev/null +++ b/content/.yaml @@ -0,0 +1,8 @@ +meta: + author: Sebastian + created: '2024-09-10' + time: 12-43-18 + navtitle: null + modified: '2024-08-01' + title: '' + description: '' diff --git a/content/00-getting-started/00-create-your-first-page.yaml b/content/00-getting-started/00-create-your-first-page.yaml index d760938..70213af 100644 --- a/content/00-getting-started/00-create-your-first-page.yaml +++ b/content/00-getting-started/00-create-your-first-page.yaml @@ -7,6 +7,6 @@ meta: modified: '2024-04-27' created: '2024-04-25' time: 17-24-48 - template: landingpage hide: false noindex: false + template: landingpage diff --git a/content/00-getting-started/index.yaml b/content/00-getting-started/index.yaml index eeb2460..d8898ce 100644 --- a/content/00-getting-started/index.yaml +++ b/content/00-getting-started/index.yaml @@ -7,7 +7,7 @@ meta: modified: '2024-05-17' created: '2024-04-25' time: 13-16-58 - contains: pages - template: '' hide: false noindex: false + contains: pages + template: '' diff --git a/system/typemill/Controllers/ControllerWebFrontend.php b/system/typemill/Controllers/ControllerWebFrontend.php index 61bee92..7d7ef6b 100644 --- a/system/typemill/Controllers/ControllerWebFrontend.php +++ b/system/typemill/Controllers/ControllerWebFrontend.php @@ -106,13 +106,13 @@ class ControllerWebFrontend extends Controller $liveNavigation = $this->c->get('dispatcher')->dispatch(new OnPagetreeLoaded($liveNavigation), 'onPagetreeLoaded')->getData(); # For FOLDERS use item without drafts and hidden pages - if(!$home && $item->elementType == 'folder') + if(!$home && $item->elementType == 'folder' && !$item->hide) { # $item = $navigation->getItemWithUrl($liveNavigation, $item->urlRelWoF); $item = $navigation->getItemWithKeyPath($liveNavigation, $item->keyPathArray); } - # ADD BACKWARD-/FORWARD PAGINATION + # ADD BACKWARD-/FORWARD PAGINATION $item = $navigation->getPagingForItem($liveNavigation, $item); $item = $this->c->get('dispatcher')->dispatch(new OnItemLoaded($item), 'onItemLoaded')->getData(); diff --git a/system/typemill/Models/Navigation.php b/system/typemill/Models/Navigation.php index 2889dcd..4943ab1 100644 --- a/system/typemill/Models/Navigation.php +++ b/system/typemill/Models/Navigation.php @@ -744,7 +744,12 @@ class Navigation extends Folder } public function getPagingForItem($navigation, $item) - { + { + if(!$item) + { + return $item; + } + # if page is home if(trim($item->pathWithoutType, DIRECTORY_SEPARATOR) == 'index') {