cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sserrano13
Helper I
Helper I

Hide navigation section

Hello,

 

Any one knows who hide the first navigation section that's refers to the title:

sserrano13_1-1611570003126.png

 

Thanks for the help!

1 ACCEPTED SOLUTION

Accepted Solutions
OliverRodrigues
Super User II
Super User II

@sserrano13 I think you need to change a bit the liquid code responsible for rendering the header/menu.

 

  • Open the Web Template called Header
    • you can find this in the Portal studio or Portal Management App
  • If you are using a starter portal and haven't made any changes there you need to change line 56 of the original code:

OliverRodrigues_0-1611695266819.png

 

  • Highlighted I am adding the "and link.url" in that condition, if you want, you can completely remove that part from line 56 to 61
  • Now you need to make a simple change in your Web Link Informacion Operativa and simply remove the reference to the page

OliverRodrigues_1-1611695634874.png

 

  • Clear the cache/sync configuration
  • Now if your Web Link contains a like to a page, it will show there.. but if it is just acting as a parent web link in your hierarchical structure (and has no real link to any page).. it will simply not render

 

hope this makes sense




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

View solution in original post

6 REPLIES 6
ragavanrajan
Super User
Super User

Hi @sserrano13 ,

 

1. Log in to Portal studio > Click on the pages link on the left side menu 

2. Then if you have menu like below structure. Then choose "Hide in default menus" for all submenus and leave the top menu (In my case Admin) as it is.

 

ragavanrajan_0-1611604882114.png

This should work. 

 

Pro tip:  If you want to hide navigation depends on the role . You can implement "Web page access control rule" 

 


Hope it helps. 

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Hello! 

 

Thanks for your reply. 

 

Your solution doesn't work. This navigation bar is the 'main navigation' and I tried both options. Hide using 'hide in default menu' and web page access rules.

It is important to note that I use the web page access rules to hide the entire navigation drop-down menu for non-registered users.

 

Any more ideas? I am aware that your solution should work, but it is not.

 

I have refreshed the portal cache through _services / about and nothing. Maybe I should restart the portal?

 

Thanks!

ragavanrajan
Super User
Super User

Hi @sserrano13 , yes portal restart you can give a try. 

 

1. Can you try this pls. Once you have hidden the default menu. 

2. Go to site setting - web link sets - deactivate or delete the default navigation 

3. In portal studio do the sync configuration and browse site. 

 

Hope it helps. 

OliverRodrigues
Super User II
Super User II

@sserrano13 I think you need to change a bit the liquid code responsible for rendering the header/menu.

 

  • Open the Web Template called Header
    • you can find this in the Portal studio or Portal Management App
  • If you are using a starter portal and haven't made any changes there you need to change line 56 of the original code:

OliverRodrigues_0-1611695266819.png

 

  • Highlighted I am adding the "and link.url" in that condition, if you want, you can completely remove that part from line 56 to 61
  • Now you need to make a simple change in your Web Link Informacion Operativa and simply remove the reference to the page

OliverRodrigues_1-1611695634874.png

 

  • Clear the cache/sync configuration
  • Now if your Web Link contains a like to a page, it will show there.. but if it is just acting as a parent web link in your hierarchical structure (and has no real link to any page).. it will simply not render

 

hope this makes sense




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

View solution in original post

Fubar
Solution Specialist
Solution Specialist

Agree with @OliverRodrigues .  Unfortunately that first item is from the Parent navigation item and not able to be hidden using standard functionality - I have seen people try to hide it with JavaScript/CSS (but it ends up being very messy as there are no reliable id's etc rendered in the HTML), better off making Liquid changes.  Alternatively, put some descriptive content on the Page for that link and include links to the other 2 items.

Thanks @OliverRodrigues 

 

I have modified the header code deleting the part that is refered to the link.url and it's working now.

 

😄

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (53,988)