Course Content
Portal Pages
COMPLETED
Faris Ansari
May 19, 2021

Portal pages are server rendered pages for your website visitors.

We have been exclusively working with the Desk which is the admin interface accessible by System Users. Usually you will want to give limited access to your customers. In our case, we want Library Members to be able to view available Articles that they can issue from our website. Portal Pages can help us achieve that.

Go to Article doctype, and scroll down to the Web View section.

  1. Enable Has Web View and Allow Guest to View
  2. Enter articles in the Route field
  3. Add a field named Route in the fields table
  4. Click on Save

Article Web View

We have now enabled web views for Article doctype. This means you can now view details of an Article on your website without logging into Desk. Let's test this out by creating a new Article. You should see See on Website at the top left of your form. Click on it to view the web view of the Article.

Article Web Page

Questions
No "See on Website"
C CQ
4 months ago
Post
Dismiss

follow the process but there is no "See on Website" on the Article page.

AA Ahmed Ashour
1 week ago
Post
Dismiss

same here, but managed to display the page, when you create an article, the route field will be populated with the following: articles/<yourarticlename> .. if you visit library.test:8000/articles/<yourarticlename> .. you will find the page

Want to discuss?
Post it here, our mentors will help you out.