File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,13 @@ Copy plugin files to your plugin's directory. Use the following blueprint anywhe
2323Add the following blueprint to wherever you would like the navigation field to appear.
2424
2525``` yaml
26- navigation :
27- label : Navigation
28- type : navigation
29- levels : 5
30- help : Description of menu or where it is used
31- width : 1/2
26+ fields :
27+ navigation :
28+ label : Navigation
29+ type : navigation
30+ levels : 5
31+ help : Description of menu or where it is used
32+ width : 1/2
3233` ` `
3334
3435Two Field methods are included which will output the menu regardless of how many levels deep you go:
@@ -68,9 +69,11 @@ If you would like full control of your menu and would prefer to use a foreach to
6869 <?php if($nav->children()->isNotEmpty()): ?>
6970 <ul >
7071 <?php foreach($nav->children()->toStructure() as $child): ?>
71- <a href =" <?php echo $child->url() ?>" >
72- <?php echo $nav->text() ?>
73- </a >
72+ <li >
73+ <a href =" <?php echo $child->url() ?>" >
74+ <?php echo $child->text() ?>
75+ </a >
76+ </li >
7477 <?php endforeach ?>
7578 </ul >
7679 <?php endif ?>
You can’t perform that action at this time.
0 commit comments