Add public pages concept in LemonLDAP::Portal
Hi,
Lately we came across the need to create public static pages (pages accessible without authentication) in LemonLDAP. As we think other users could need this feature I open this ticket to discuss it with you.
What we did is :
- Modify portal-apache2.4.conf adding :
Public pages
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/public* /public.pl
</IfModule>
- Add a public public.pl file to the portal (next to metadata.pl, mail.pl, …). See file in attachment.
Now users have the ability to create public page in their skin.
There is a mapping between the URL and the *.tpl of the skin. URL = https:///pubic?page= Template = public/public-.tpl
We placed all public pages inside a “public” folder in the skin to distinguish them from the core LemonLDAP templates.
We handled inexistent pages displaying “public/public-404.tpl” if the request page does not exist.
Do you think you could merge the feature inside LemonLDAP ?