documentation:2.1:public_pages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:2.1:public_pages [2019/01/15 15:55] (current)
Line 1: Line 1:
 +====== Public pages ======
  
 +<note>Public pages are available since version 1.9.8.</note>
 +
 +===== Presentation =====
 +
 +Public pages are an easy way to build pages based on LL::NG portal skin. You can for example create a landing page or customize error pages with it. 
 +
 +A public page is just a template created in portal/skins///yourskin///public/ directory, for example test.tpl. This page can then be displayed with this URL: http://auth.example.com/public?page=test
 +
 +
 +
 +===== Page creation =====
 +
 +Create the public/ directory :
 +<code>mkdir /var/lib/lemonldap-ng/portal/skins/bootstrap/public</code>
 +
 +Create the new page:
 +<code>vi /var/lib/lemonldap-ng/portal/skins/bootstrap/public/test.tpl</code>
 +
 +<file html>
 +<TMPL_INCLUDE NAME="../header.tpl">
 +
 +<div class="container">
 +  <div class="alert alert-success">
 +    TEST
 +  </div>
 +</div>
 +
 +<TMPL_INCLUDE NAME="../footer.tpl">
 +</file>
 +
 +Display the page: http://auth.example.com/public?page=test