diff --git a/pr-1540/dev-docs-preview/README.html b/pr-1540/dev-docs-preview/README.html index 8fbb3116100..1b60a58f37d 100644 --- a/pr-1540/dev-docs-preview/README.html +++ b/pr-1540/dev-docs-preview/README.html @@ -392,7 +392,7 @@
x-link
component
-Tip: When using subdirectory-based dropdowns, you can set their priority using the directory name as the array key.
HydePHP has a neat feature to automatically place pages in dropdowns based on subdirectories.
-For pages that can be in the main site menu, ths feature needs to be enabled in the hyde.php
config file.
Filepath: config/hyde.php'navigation' => [
- 'subdirectories' => 'dropdown',
-],
-
-Now if you create a page called _pages/about/contact.md
it will automatically be placed in a dropdown called "About".
This feature works similarly to the automatic navigation menu dropdowns, but instead place the sidebar items in named groups. -This feature is enabled by default, so you only need to place your pages in subdirectories to have them grouped.
-For example: _docs/getting-started/installation.md
will be placed in a group called "Getting Started".
The following configuration options in the confg/hyde.php
file are intended for advanced users and
should only be modified if you fully understand their impact. The code examples show the default values.
getBladeView()
Within the Hyde config you can configure how subdirectories should be displayed in the menu.
+'navigation' => [
+ 'subdirectories' => 'dropdown'
+]
+
+Dropdown means that pages in subdirectories will be displayed in a dropdown menu,
+while flat
means that pages in subdirectories will be displayed as individual items in the menu.
+Hidden means that pages in subdirectories will not be displayed in the menu at all.
HydePHP has a neat feature to automatically place pages in dropdowns based on subdirectories.
+For pages that can be in the main site menu, ths feature needs to be enabled in the hyde.php
config file.
Filepath: config/hyde.php'navigation' => [
+ 'subdirectories' => 'dropdown',
+],
+
+Now if you create a page called _pages/about/contact.md
it will automatically be placed in a dropdown called "About".
This feature works similarly to the automatic navigation menu dropdowns, but instead place the sidebar items in named groups. +This feature is enabled by default, so you only need to place your pages in subdirectories to have them grouped.
+For example: _docs/getting-started/installation.md
will be placed in a group called "Getting Started".
While not required to know, you may find it interesting to learn more about how the navigation is handled internally. The best way to learn about this is to look at the source code, so here is a high-level overview with details on where to look in the source code.
@@ -640,7 +676,7 @@booted()