Header
The Header is a core element for Foundation
Last updated
The Header is a core element for Foundation
Last updated
The header contains Focus Groups and Popups that serve a variety of purposes.
The visible part of the header is the 'g:main' group. Within that are 3 main sections:
g:mobile -- only visible when var - mobile mode? is yes
g:desktop -- only visible when var - mobile mode? is yes
g:static -- always visible. (User profile pic, light / dark toggle, etc.)
These nav items are in a repeating group of "Header Navigation Item" data types. The items in the navigation menu are managed in the admin portal.
The repeating group of navigation items is different on desktop vs. mobile.
Learn about managing the Header menu in the admin portal -> Header
When a user is logged in, their profile will replace the Login / Signup buttons that logged out users see.
When the user profile is clicked, it shows a Group Focus menu that contains links relevant to only the Current User.
The same happens on mobile, but the user's name is hidden.
On page load, the Header does a search for a Page item that matches the current page name.
If a Page item doesn't exist in the database (and the user is Admin), then it creates a database item.
It then sets it to a state on the Header. that's referenced by page variables.