125 lines
5.9 KiB
HTML
125 lines
5.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" dir="ltr">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>documentation:2.0:public_pages</title>
|
|
<meta name="generator" content="DokuWiki"/>
|
|
<meta name="robots" content="index,follow"/>
|
|
<meta name="keywords" content="documentation,2.0,public_pages"/>
|
|
<link rel="search" type="application/opensearchdescription+xml" href="lib/exe/opensearch.html" title="LemonLDAP::NG"/>
|
|
<link rel="start" href="public_pages.html"/>
|
|
<link rel="contents" href="public_pages.html" title="Sitemap"/>
|
|
<link rel="stylesheet" type="text/css" href="lib/exe/css.php.t.bootstrap3.css"/>
|
|
<!-- //if:usedebianlibs
|
|
<link rel="stylesheet" type="text/css" href="/javascript/bootstrap/css/bootstrap.min.css" />
|
|
//elsif:useexternallibs
|
|
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"></script>
|
|
//elsif:cssminified
|
|
<link rel="stylesheet" type="text/css" href="/static/bwr/bootstrap/dist/css/bootstrap.min.css" />
|
|
//else -->
|
|
<link rel="stylesheet" type="text/css" href="/static/bwr/bootstrap/dist/css/bootstrap.css" />
|
|
<!-- //endif -->
|
|
<script type="text/javascript">/*<![CDATA[*/var NS='documentation:2.0';var JSINFO = {"id":"documentation:2.0:public_pages","namespace":"documentation:2.0"};
|
|
/*!]]>*/</script>
|
|
<script type="text/javascript" charset="utf-8" src="lib/exe/js.php.t.bootstrap3.js"></script>
|
|
<!-- //if:usedebianlibs
|
|
<script type="text/javascript" src="/javascript/jquery/jquery.min.js"></script>
|
|
//elsif:useexternallibs
|
|
<script type="text/javascript" src="http://code.jquery.com/jquery-2.2.0.min.js"></script>
|
|
//elsif:jsminified
|
|
<script type="text/javascript" src="/static/bwr/jquery/dist/jquery.min.js"></script>
|
|
//else -->
|
|
<script type="text/javascript" src="/static/bwr/jquery/dist/jquery.js"></script>
|
|
<!-- //endif -->
|
|
<!-- //if:usedebianlibs
|
|
<script type="text/javascript" src="/javascript/jquery-ui/jquery-ui.min.js"></script>
|
|
//elsif:useexternallibs
|
|
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>
|
|
//elsif:jsminified
|
|
<script type="text/javascript" src="/lib/scripts/jquery-ui.min.js"></script>
|
|
//else -->
|
|
<script type="text/javascript" src="/lib/scripts/jquery-ui.js"></script>
|
|
<!-- //endif -->
|
|
</head>
|
|
<body>
|
|
<div class="dokuwiki export container">
|
|
<!-- TOC START -->
|
|
<div id="dw__toc">
|
|
<h3 class="toggle">Table of Contents</h3>
|
|
<div>
|
|
|
|
<ul class="toc">
|
|
<li class="level1"><div class="li"><a href="#presentation">Presentation</a></div></li>
|
|
<li class="level1"><div class="li"><a href="#configuration">Configuration</a></div></li>
|
|
<li class="level1"><div class="li"><a href="#page_creation">Page creation</a></div></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- TOC END -->
|
|
|
|
<h1 class="sectionedit1" id="public_pages">Public pages</h1>
|
|
<div class="level1">
|
|
<div class="noteclassic">Public pages are available since version 1.9.8.
|
|
</div>
|
|
</div>
|
|
<!-- EDIT1 SECTION "Public pages" [1-90] -->
|
|
<h2 class="sectionedit2" id="presentation">Presentation</h2>
|
|
<div class="level2">
|
|
|
|
<p>
|
|
Public pages are an easy way to build pages based on <abbr title="LemonLDAP::NG">LL::NG</abbr> portal skin. You can for example create a landing page or customize error pages with it.
|
|
</p>
|
|
|
|
<p>
|
|
A public page is just a template created in portal/skins<em>/yourskin</em>/public/ directory, for example test.tpl. This page can then be displayed with this <abbr title="Uniform Resource Locator">URL</abbr>: <a href="http://auth.example.com/public?page=test" class="urlextern" title="http://auth.example.com/public?page=test" rel="nofollow">http://auth.example.com/public?page=test</a>
|
|
</p>
|
|
|
|
</div>
|
|
<!-- EDIT2 SECTION "Presentation" [91-467] -->
|
|
<h2 class="sectionedit3" id="configuration">Configuration</h2>
|
|
<div class="level2">
|
|
|
|
<p>
|
|
Just be sure that Apache or Nginx rewrite rule is set:
|
|
</p>
|
|
<pre class="code file apache"> <span class="co1"># Public pages</span>
|
|
<<span class="kw3">IfModule</span> mod_rewrite.c>
|
|
<span class="kw1">RewriteEngine</span> <span class="kw2">On</span>
|
|
<span class="kw1">RewriteRule</span> ^/public* /public.pl
|
|
</<span class="kw3">IfModule</span>></pre>
|
|
<pre class="code file nginx"> # Public pages
|
|
rewrite ^/public.* /public.pl;</pre>
|
|
|
|
</div>
|
|
<!-- EDIT3 SECTION "Configuration" [468-773] -->
|
|
<h2 class="sectionedit4" id="page_creation">Page creation</h2>
|
|
<div class="level2">
|
|
|
|
<p>
|
|
Create the public/ directory :
|
|
</p>
|
|
<pre class="code">mkdir /var/lib/lemonldap-ng/portal/skins/bootstrap/public</pre>
|
|
|
|
<p>
|
|
Create the new page:
|
|
</p>
|
|
<pre class="code">vi /var/lib/lemonldap-ng/portal/skins/bootstrap/public/test.tpl</pre>
|
|
<pre class="code file html4strict"><span class="sc2"><TMPL_INCLUDE <span class="kw3">NAME</span><span class="sy0">=</span><span class="st0">"../header.tpl"</span>></span>
|
|
|
|
<span class="sc2"><<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">"container"</span>></span>
|
|
<span class="sc2"><<a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a> <span class="kw3">class</span><span class="sy0">=</span><span class="st0">"alert alert-success"</span>></span>
|
|
TEST
|
|
<span class="sc2"><<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>></span>
|
|
<span class="sc2"><<span class="sy0">/</span><a href="http://december.com/html/4/element/div.html"><span class="kw2">div</span></a>></span>
|
|
|
|
<span class="sc2"><TMPL_INCLUDE <span class="kw3">NAME</span><span class="sy0">=</span><span class="st0">"../footer.tpl"</span>></span></pre>
|
|
|
|
<p>
|
|
Display the page: <a href="http://auth.example.com/public?page=test" class="urlextern" title="http://auth.example.com/public?page=test" rel="nofollow">http://auth.example.com/public?page=test</a>
|
|
</p>
|
|
|
|
</div>
|
|
<!-- EDIT4 SECTION "Page creation" [774-] --></div>
|
|
</body>
|
|
</html>
|