
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Full navigation header, menus, sub menus, internal and external links and documents, simple integrated design.
Full navigation header, menus, sub menus, internal and external links and documents, simple integrated design.
^3
^3
^2.8
pip install menu_header_wagtail
menu_header_wagtail
to your installed apps./ manage.py migrate
my_app/models.py
from menu_header_wagtail.models import HeaderPage
HeaderPage
to the page model as ForeignKey
in your HomePage or other pagesclass HomePage(Page):
header = models.ForeignKey(
HeaderPage,
null=True,
blank=True,
on_delete=models.SET_NULL,
related_name='+'
)
...
and then in content
...
content_panels = Page.content_panels + [
SnippetChooserPanel('header'),
...
]
{% load menu_header_wagtail_tag %}
{% render_header_ui page %}
NOTE: If you have nested pages, then use the get_parent_page tag and the child page as a parameter.
When you get it, you must indicate the type of page that the parent is: page_parent.{type_page}
{% get_parent_page page as page_parent %}
{% render_header page_parent.homepage %}
Using this type of menu is important because it allows you to reuse as well as create different ones for different pages.
Made with ♥ by Jose Florez
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.