I created a new Web Link Set with links to six pages. I am trying to display the links to all those pages so that users can navigate between these pages quickly.
Then I created a Content Snippet to read from the Web Link Set. I took the code from the Header web template and removed most of the bits that I don't need.
Then I reference the snippet from my web template.
But there are two problems.
1. When an admin user browse the page, he is able to edit the section.
2. If the admin clicks EDIT, the edit panel displays the liquid code in the content snippet.
I actually don't want admins to modify the links section on the page at all. So if porblem 1 is solved, problem 2 will go away too.
What is the correct way for me to put the links onto the pages and make it non editable on the page?
Thank you for any help.
I personally don't like that front-end editor.. would removing it completely solve your problem?
if yes, you can open your Portal Management app, navigate to Web Page Access Control Rules and deactivate the "Grant Control to Admin" record.. clear the cache and you won't see that again
Thank you Oliver for the suggestion. It's good to know I can do that as I'm fairly new to PAP.
There is another section on the page which I do need to allow content editors to manage their contents. If I configure the setting you mentioned, does that mean when they need to update the content, they will need to use Portal Studio instead of the front-end editor?
So I think Web Page Access Control Rule is exactly what you are looking for
by disabling the "Grant Control to Admin" you would remove the front-editor completely, and then you can create a new one.. and specify the Web Page where you want that editor to be available and associate the Web Role
if you want to test it out.. simply update the existing Access Rule to instead of the Home Page, the web page that you want it enabled
Thank you @OliverRodrigues again for your reply. After testing out the Web Page Access Control Rule, I believe it is not suitable for my case here, as users would still like to use front page editor to modify the 'copy' section on the page. So I had placed the code of the links section directly into the web template instead of using the Content Snippet. The links will only be used by this web template anyway so it doesn't really add any value to have it in the Content Snippet.
But thank you again. I appreciate the knowledge I gained from your reply.
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Check out our new Discover Your Career Path blog post series and get all the details.