{"id":35820,"date":"2023-08-23T15:19:26","date_gmt":"2023-08-23T09:49:26","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=35820"},"modified":"2023-08-23T15:58:34","modified_gmt":"2023-08-23T10:28:34","slug":"design-custom-sidebar-within-microsoft-power-pages","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2023\/08\/design-custom-sidebar-within-microsoft-power-pages\/","title":{"rendered":"Design Custom Sidebar within Microsoft Power Pages"},"content":{"rendered":"<p><a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-pages\/\" target=\"_blank\" rel=\"noopener\">Microsoft Power Pages<\/a> offer a low-code, no-code SaaS (Software as a Service) platform fortified with enterprise-level security. It simplifies the process of creating, hosting, and managing modern external-facing business websites.<\/p>\n<p>By default, when creating a Power Pages site, the primary navigation is positioned at the top of the header. However, there might be at times when custom navigation designs are needed for the Power Pages Portal.<\/p>\n<p>We will consider a scenario, where we choose to customize the site map in Power Pages. Our goal is to alter how the navigation bar looks and move it from the top to the left side of our portal pages.<\/p>\n<p>Let\u2019s do a walkthrough with the steps we need to perform and achieve these requirements.<\/p>\n<p>The first step is to create a Web Template, wherein we will input CSS for the navbar and incorporate a few lines of JavaScript code.<\/p>\n<p><strong>Follow below action list to do these changes:<\/strong><\/p>\n<ol>\n<li>Navigate to the Web Template in Portal Management.<\/li>\n<li>Create a new Web Template. Here, you&#8217;ll design your Site Map.<\/li>\n<li>For our Site Map, we&#8217;ve used the following CSS (always ensure CSS codes are encapsulated within a style tag):<\/li>\n<\/ol>\n<pre class=\"lang:css gutter:true start:1\">\/* Styling the Nav Bar *\/\r\nnav\r\n\r\n{\r\n\r\ncursor: pointer;\r\n\r\nposition: fixed;\r\n\r\ntop: 0;\r\n\r\nbottom: 0;\r\n\r\nleft: -16em;\r\n\r\nbox-shadow:10px 10px 40px white;\r\n\r\nborder-right: 30px solid #2E456B;\r\n\r\nbackground-color: #2E456B;\r\n\r\n}\r\n\r\nnav ul\r\n\r\n{\r\n\r\nwidth: 16em;\r\n\r\nlist-style-type: none;\r\n\r\npadding: 1em;\r\n\r\nmargin: 0;\r\n\r\n}\r\n\r\n\/* Adding Animations to nav and all its child elements *\/\r\n\r\nnav, nav *\r\n\r\n{\r\n\r\ntransition: all 600ms ease-in-out;\r\n\r\n}\r\n\r\n\/* On hover expanding the Site Bar *\/\r\n\r\nnav:hover\r\n\r\n{\r\n\r\nleft: 0;\r\n\r\n}\r\n\r\nnav ul li a{\r\n\r\nfont-size: 15px !important;\r\n\r\n}\r\n\r\nnav ul li{\r\n\r\nwidth:100% !important;\r\n\r\n}\r\n\r\n.navbar-nav{\r\n\r\noverflow: auto !important;\r\n\r\nheight: 100vh;\r\n\r\n}\r\n\r\n\/* Hiding the Vertical Divider *\/\r\n\r\n.divider-vertical{\r\n\r\ndisplay:none !important;\r\n\r\n}\r\n\r\n.dropdown-menu{\r\n\r\nposition:relative !important;\r\n\r\n}\r\n\r\n\/* Right arrow Style for Users to identify the SiteMap *\/\r\n\r\n#rightArrow{\r\n\r\nposition: absolute;\r\n\r\ncolor: white;\r\n\r\ntop: 50%;\r\n\r\nleft: 110%;\r\n\r\nz-index: 2;\r\n\r\nborder: 50% solid white;\r\n\r\nwidth: 20px;\r\n\r\nheight: 28px;\r\n\r\nborder-top: 20px solid transparent;\r\n\r\nborder-bottom: 20px solid transparent;\r\n\r\nborder-left: 20px solid #2E456B;;\r\n\r\n}<\/pre>\n<p><strong>Refer the screenshot below:<\/strong><\/p>\n<p><strong> <img decoding=\"async\" class=\"alignnone size-full wp-image-35825\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/1Microsoft-Power-Pages.jpeg\" alt=\"Microsoft Power Pages\" width=\"1612\" height=\"786\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/1Microsoft-Power-Pages.jpeg 1612w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/1Microsoft-Power-Pages-300x146.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/1Microsoft-Power-Pages-1024x499.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/1Microsoft-Power-Pages-768x374.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/1Microsoft-Power-Pages-1536x749.jpeg 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/1Microsoft-Power-Pages-660x322.jpeg 660w\" sizes=\"(max-width: 1612px) 100vw, 1612px\" \/><\/strong><\/p>\n<p>Next, to help users identify the site map, we will introduce a right arrow with the help of the below actions:<\/p>\n<ol>\n<li>Incorporate jQuery and add the source in the Web template.<\/li>\n<li>Use the following logic for displaying the right arrow on the pages:<\/li>\n<\/ol>\n<pre class=\"lang:css gutter:true start:1\">&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.6.4\/jquery.min.js\"&gt;&lt;\/script&gt;\r\n\r\n&lt;script&gt;\r\n\r\n$(document).ready(()=&gt;{\r\n\r\nlet nav;\r\n\r\nlet rightArrow = \"&lt;span id='rightArrow'&gt;&lt;\/span&gt;\"\r\n\r\nnav = $(\".nav\");\r\n\r\n$(nav).append(rightArrow)\r\n\r\n})\r\n&lt;\/script&gt;<\/pre>\n<p><strong>As shown in the screenshot below:<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35824\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/2Microsoft-Power-Pages.jpeg\" alt=\"Microsoft Power Pages\" width=\"1394\" height=\"562\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/2Microsoft-Power-Pages.jpeg 1394w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/2Microsoft-Power-Pages-300x121.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/2Microsoft-Power-Pages-1024x413.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/2Microsoft-Power-Pages-768x310.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/2Microsoft-Power-Pages-660x266.jpeg 660w\" sizes=\"(max-width: 1394px) 100vw, 1394px\" \/><\/p>\n<p>Lastly, implement this Web Template into our Power Pages Site\u2019s header with the below set of actions:<\/p>\n<p>1. Navigate to the website section.<\/p>\n<p>2. Select the desired website and locate the header.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35823\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/3Microsoft-Power-Pages.jpeg\" alt=\"Microsoft Power Pages\" width=\"1620\" height=\"504\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/3Microsoft-Power-Pages.jpeg 1620w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/3Microsoft-Power-Pages-300x93.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/3Microsoft-Power-Pages-1024x319.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/3Microsoft-Power-Pages-768x239.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/3Microsoft-Power-Pages-1536x478.jpeg 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/3Microsoft-Power-Pages-660x205.jpeg 660w\" sizes=\"(max-width: 1620px) 100vw, 1620px\" \/><\/p>\n<p>3. Click on the header, we can use the Created Custom Sitemap Web Template for all the website-associated web pages,<\/p>\n<p><strong>As shown in the screenshot below:<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35822\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/4Microsoft-Power-Pages.jpeg\" alt=\"Microsoft Power Pages\" width=\"1440\" height=\"514\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/4Microsoft-Power-Pages.jpeg 1440w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/4Microsoft-Power-Pages-300x107.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/4Microsoft-Power-Pages-1024x366.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/4Microsoft-Power-Pages-768x274.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/4Microsoft-Power-Pages-660x236.jpeg 660w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/p>\n<p>Save and Sync the Website,<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-35821\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/5Microsoft-Power-Pages.jpeg\" alt=\"Microsoft Power Pages\" width=\"1896\" height=\"736\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/5Microsoft-Power-Pages.jpeg 1896w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/5Microsoft-Power-Pages-300x116.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/5Microsoft-Power-Pages-1024x398.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/5Microsoft-Power-Pages-768x298.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/5Microsoft-Power-Pages-1536x596.jpeg 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/5Microsoft-Power-Pages-660x256.jpeg 660w\" sizes=\"(max-width: 1896px) 100vw, 1896px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Customizing navigation in Microsoft Power Pages is both flexible and user-friendly. By following the above listed steps, users can enhance site navigation and ensure a more tailored and intuitive user experience.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/services\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone size-full wp-image-35832\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/Microsoft-Power-Platform-1.gif\" alt=\"\" width=\"800\" height=\"200\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft Power Pages offer a low-code, no-code SaaS (Software as a Service) platform fortified with enterprise-level security. It simplifies the process of creating, hosting, and managing modern external-facing business websites. By default, when creating a Power Pages site, the primary navigation is positioned at the top of the header. However, there might be at times\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2023\/08\/design-custom-sidebar-within-microsoft-power-pages\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1913,38],"tags":[2697],"class_list":["post-35820","post","type-post","status-publish","format-standard","hentry","category-microsoft-power-platform-services","category-microsoft-powerapps","tag-microsoft-power-pages"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/35820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=35820"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/35820\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=35820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=35820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=35820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}