Product Delivery
Targeted Sales
Collicitudin vel metus scelerisque ante commodo.
In Progress25% Completed
content layout with right sidebar
The content layout page structure with navigation, content area and right sidebar.
Content layout right sidebar provides more navigations options on page level. For the larger screen this layout provides best usability. This layout use the third column as a sidebar section.
This table contains all classes related to the content right sidebar layout. This is a custom layout classes for content right sidebar layout page requirements.
All these options can be set via following classes:
Classes | Description |
---|---|
.content-right-sidebar |
You can create 3 column right layout by adding .content-right-sidebar class in <body> tag. |
.content-left |
In this layout content should be float in right side, so .content-left class needs to add in content wrapper. Refer HTML markup line no 27. |
.sidebar-right |
In this layout sidebar should be float in right side, so .sidebar-right class needs to add in sidebar wrapper. Refer HTML markup line no 33. |
This section contains HTML Markup to create 3 column right sidebar layout. You need to add the .content-right-sidebar
class in the <body>
tag as show in below markup on line no 4. This layout has a navigation, content and right sidebar sections with common header & footer.
.content-left
class for adjusting content section in right side..sidebar-right
class for adjusting sidebar section in right side.Robust has a ready to use starter kit, you can use this layout directly by using the sk-content-right-sidebar.html
<!DOCTYPE html>
<html lang="en">
<head></head>
<body data-menu="vertical-menu" class="vertical-layout vertical-menu content-right-sidebar menu-expanded">
<!-- navbar-fixed-top-->
<nav role="navigation" class="header-navbar navbar navbar-with-menu navbar-fixed-top navbar-dark navbar-shadow navbar-border">
...
</nav>
<!-- BEGIN Navigation-->
<div class="main-menu menu-dark menu-fixed menu-shadow">
...
</div>
<!-- END Navigation-->
<!-- BEGIN Content-->
<div class="content robust-content container-fluid">
<div class="content-wrapper">
<!-- content header-->
<div class="content-header row">
...
</div>
<!-- content header-->
<!-- content right-->
<div class="content-left">
...
</div>
<!-- content right-->
<!-- sidebar right-->
<div class="sidebar-right">
<div class="sidebar">
...
</div>
</div>
<!-- sidebar right-->
</div>
</div>
<!-- END Content-->
<!-- START FOOTER DARK-->
<footer class="footer footer-dark">
...
</footer>
<!-- START FOOTER DARK-->
</body>
</html>
Robust 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.
This table contains required JADE variables to generate 3 column right sidebar layout.
Variable | Value | Description |
---|---|---|
contentLayout |
'content-right-sidebar' |
You need to set contentLayout variable value as 'content-right-sidebar' in pageConfig block. |
To generate content right sidebar layout page or template, you need to use following JADE code.
pageConfig
block has a template specific configuration variables, in that for 3 column layout need to define variable - var contentLayout = 'content-right-sidebar'
content
block has content section html file included include ../contents/layout-content-right-sidebar.html
, which can be customizable on page level.sidebar
block has sidebar section html file included include ../contents/sidebar-common.html
, which can be customizable on page level.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 for content right sidebar layout-content-right-sidebar.jade
, however you can use it on template level but it will generate whole template as a content right sidebar.
block pageVars
- var pageTitle = "Content Right Sidebar"
- var pageSubTitle = "content layout with right sidebar"
- var description = "The content right sidebar layout with navigation, content area and right sidebar."
- var activeMenu = "content-right-sidebar"
extends template
block pageConfig
- var templateCustom = "vertical-layout vertical-menu" //- OPTIONS: menu-flipped
- var dataMenu = "vertical-menu"
- var boxedLayout = false //- OPTIONS:- true, false
- var contentLayout = 'content-right-sidebar'
append breadcrumbs
include ../includes/mixins
+breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Starters"}, {name:"Content Right Sidebar"}])
append page-header
include page-headers/breadcrumb-top
//- Include page content in content black
append content
include ../contents/layout-content-right-sidebar.html
append sidebar
include ../contents/sidebar-common.html
//- Page specific dependency
//------------------------------
//- Add custom page specific CSS
block pagecss
link(rel='stylesheet', type='text/css', href='robust-assets/css/plugins/ui/prism.min.css')
//- Add custom page specific JS
block pagejs
script(src='robust-assets/js/plugins/ui/prism.min.js', type='text/javascript')