Breadcrumbs with search


An example of page header with page title, breadcrumbs, content title and search input-box.

HTML Markup

This section contains HTML Markup to create page with headers breadcrumbs with search.

You can use below HTML headers breadcrumbs with search page header snippet in any type of layout. You can also custom above HTML snippet as per your requirements. Modern has a ready to use 10 different types of page headers.

              <div class="content-header row">
                  <div class="content-header-left col-md-6 col-12">
                    <h2 class="content-header-title mb-0">Breadcrumbs with search</h2>
                    <p class="text-muted mb-0">Page header with breadcrumbs & search</p>
                  <div class="content-header-right col-md-6 col-12">
                    <fieldset class="form-group relative has-icon-left col-md-6 float-right">
                      <input id="iconLeft" type="text" placeholder="Search..." class="form-control round"/>
                      <div class="form-control-position"><i class="la la-search"></i></div>
                  <div class="content-header-lead col-12 mt-2">
                    <p class="lead">Page header with page title, breadcrumbs, description, content title and search input-box.</p>

PUG Configuration

Modern Admin use PUG as template engine to generate pages and whole template quickly using node js, for getting start with PUG usage & template generating process please refer template documentation.

PUG Variables

This table contains required PUG block to generate page with breadcrumb basic.

Block Parameter Description
page-header 'include page-headers/headers-breadcrumbs-with-search' You need to append page-header block parameter as 'include page-headers/headers-breadcrumbs-with-search'.
PUG Code

To generate page with breadcrumb basic header or template, you need to use following PUG code.

Line no 22-23: page-header block has a page/template specific configuration parameter, in that for breadcrumb basic header you need to define parameter include page-headers/headers-breadcrumbs-with-search. However you can create your own page header PUG file in pages/page-headers folder.

If you want to use this layout on page level you need to define it on page it self. This template has one example pug file with breadcrumb basic headers-breadcrumbs-with-search.pug.

                block pageVars
                    - var pageTitle    = "Breadcrumbs with search"
                    - var pageSubTitle = "Page header with breadcrumbs & search"
                    - var description  = "Page header with page title, breadcrumbs, description, content title and search input-box."
                    - var activeMenu   = "headers-breadcrumbs-with-search"
                extends template
                append breadcrumbs
                    +breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Page headers"}, {name:"Breadcrumbs with search"}])
                append page-header
                    include page-headers/breadcrumbs-with-search
                //- Include page content in page block
                append content
                    include ../contents/headers-breadcrumbs-with-search.html
                //- Page specific dependency
                //- Add custom page specific CSS
                block pagecss
                    link(rel='stylesheet', type='text/css', href='../../../app-assets/css/plugins/ui/prism.min.css')
                //- Add custom page specific JS
                block pagejs
                    script(type='text/javascript' ,src='../../../app-assets/vendors/js/ui/prism.min.js')