An example of page header with page title, breadcrumbs, description, content title and button.
This section contains HTML Markup to create page with breadcrumbs with button.
You can use below HTML breadcrumbs with button page header snippet in any type of layout. You can also custom above HTML snippet as per your requirements. Stack has a ready to use 10 different types of page headers.
<div class="content-header row"> <div class="breadcrumb-wrapper col-12"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="/">Home</a> </li> <li class="breadcrumb-item"><a href="#">Page headers</a> </li> <li class="breadcrumb-item active">Breadcrumbs with button </li> </ol> </div> <div class="content-header-left col-md-6 col-12"> <h2 class="content-header-title mb-0">Breadcrumbs with button</h2> <p class="text-muted mb-0">Page header with breadcrumbs & button</p> </div> <div class="content-header-right text-md-right col-md-6 col-12"> <div class="btn-group"> <button type="button" class="btn btn-round btn-primary"><i class="fa fa-cog"></i> Settings</button> <button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-round btn-primary dropdown-toggle"><span class="sr-only">Toggle Dropdown</span></button> <div class="dropdown-menu"><a href="#" class="dropdown-item">Action</a><a href="#" class="dropdown-item">Another action</a><a href="#" class="dropdown-item">Something else here</a> <div class="dropdown-divider"></div><a href="#" class="dropdown-item">Separated link</a> </div> </div> </div> <div class="content-header-lead col-12 mt-2"> <p class="lead">Page header with page title, breadcrumbs, description and button.</p> </div> </div>
Stack Admin use JADE as template engine to generate pages and whole template quickly using node js, for getting start with JADE usage & template generating process please refer template documentation.
JADE Variables
This table contains required JADE block to generate page with breadcrumbs with buttons.
Block | Parameter | Description |
---|---|---|
page-header
|
'include page-headers/breadcrumbs-with-button'
|
You need to append page-header block parameter as 'include page-headers/breadcrumbs-with-button' .
|
JADE Code
To generate page with breadcrumbs with buttons header or template, you need to use following JADE code.
Line no 22-23:page-header
block has a page/template specific configuration parameter, in that for breadcrumbs with buttons header you need to define parameter include page-headers/breadcrumbs-with-button
. However you can create your own page header JADE 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 jade file with breadcrumbs with buttons breadcrumbs-with-button.jade
.
block pageVars - var pageTitle = "Breadcrumbs with buttons" - var pageSubTitle = "Page header with breadcrumbs & buttons" - var description = "Page header with page title, breadcrumbs, description, content title and buttons." - var activeMenu = "headers-breadcrumbs-with-buttons" extends template append breadcrumbs +breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Page headers"}, {name:"Breadcrumbs with buttons"}]) append page-header include page-headers/breadcrumbs-with-buttons //- Include page content in page block append content include ../contents/headers-breadcrumbs-with-buttons.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')