In this tutorial you will learn how to append link to specified reports to BellaDati top menu. Example of this menu can be found below:
Following steps describe how to create similar menu:
- Go to domain administaration
- Select option Custom HTML and copy following code to the section At the end of <head>
<script>
window.onload = function() {
$(".topbar").append('<div class="menunavigation"><ul><li><a href="/bi/reports/report1">Name of report 1</a></li><li><a href="/bi/reports/report2">Name of report 2</a></li><li><a href="/bi/reports/report3">Name of report 3</a></li></ul></div>');};
</script> - Update links and name of the reports in a tag. Report alias is used in this example.
- Save the settings of Custom HTML.
- Click option Look&Feel settings
- Copy code below into the field CSS Stylesheet (this will customize the look of the new menu)
.menunavigation {
margin: auto 0;
width: 100%;
font:18px;}
.menunavigation > ul {
margin: 0;
padding: 0;
list-style: none;
font-size: 0;
}.menunavigation li {
display: inline-block;
position: relative;
}.menunavigation a {
color: #fff;
display: block;
text-align: center;
font-size: 13px;
text-decoration: none;
padding-left: 20px !important;
padding-right: 20px !important;
}
.menunavigation a:hover {
color: #fff;
background: #00A0DF;
border:5px solid bottom #ffffff;}
.menunavigation .current{
color: #fff;
background: #009ee0;
} - Save the settings
Logout and login again.
Settings will be applied after next logout and login.