Portal Development

Hello Team, All,

Is http://frappe.github.io/frappe/user/en/guides/portal-development/ still the definitive guide on portal development? I ask because I see a lot of configuration items around portal and website settings in frappe. Is there and guide on how these settings work?

Regards,
cksgb

1 Like

That link is the right guide as far as I know.

I’ve used both the /www/ and /templates/pages/ folders for the stuff I’m doing.

All the settings in the backend for theme, website settings pretty much feed into either the “context” variable in a page controller or get added as css under apps/frappe/frappe/www/website_theme.(css|py)

Also you want to look at the hooks.py file to add your own css and javascript. These files should live under your app’s public folder(you must create one if not already there)

Btw, checkout jinja2 as it is what the backend uses for templating if you are going to do any complex stuff.

Files under /www/ get fed into the main template body so you should get header and footer with your content. If you want more control you can mess with more things in /templates/pages/ specifically the base.html and web.html. Helps to know how jinja templating and inheritance works. Checkout /apps/frappe/frappe/templates to see how the basic web portal is built.

This is where the frappe theme lives: https://github.com/frappe/frappe_theme if you don’t want to dig into /apps/frappe/frappe/templates/

Some documentation needs to be updated after v7 release. But you can post your particular query here.

Thanks Felipe.

Hi @KanchanChauhan, basically just want a high level view of the steps to create a portal. For example for guardians in school to log in to see students grades.

Regards,
cksgb

this link http://frappe.github.io/frappe/user/en/guides/portal-development/ is not working any updated link for this documentation

Google search for “ERPNext portal development” led to this link

https://frappe.io/docs/user/en/guides/portal-development

1 Like