benjaminkott / benjaminkott/bootstrap_package

Menu bar above MainNavigation for contacts and so on

Open
#1,400 2 comments 1 reaction 0 assignees View on GitHub
feature
Dominant language
PHP
Stars
355
Forks
212
Avg merge
1h 4m
Merged PRs (30d)
31

Description

# Feature Request

A single MainNavigation menu bar is often not enough. It is a good idea to add a menu bar above it for e.g. contacts.

## Describe the solution you'd like

In /Resources/Private/Partials/Page/DropIn/Navigation/MainBefore.html i add:
```


```

Where I added the phone and e-mail links I need
The phone and email links themselves can be made as pages of links to external resources tel: mailto:
To display all this on the site in the form of two menu lines, I added the following rule to scss:
```
.navbar-mainnavigation .navbar-collapse {
flex-direction: column;
}
```

## Describe alternatives you've considered

All this functionality can be done similar to the meta menu in the footer.
In /Resources/Private/Layouts/Page/Default.html add
``
And add Partial /Resources/Private/Partials/Page/Navigation/MainContacts.html
And TS for menu, as meta menu:
```
1629126321 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
1629126321 {
special = {$page.theme.footernavigation.navigationType}
special.value = {$page.theme.footernavigation.navigationValue}
includeNotInMenu = {$page.theme.footernavigation.includeNotInMenu}
levels = {$page.theme.footernavigation.levels}
as = footernavigation
if {
isTrue = {$page.theme.footernavigation.navigationValue}
}
dataProcessing {
1629202464 = BK2K\BootstrapPackage\DataProcessing\IconsDataProcessor
1629202464 {
iconSet.field = nav_icon_set
iconIdentifier.field = nav_icon_identifier
iconFileFieldName = nav_icon
as = icon
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.