[Devel] [GIT] OpenBioMaps GIT repository, branch master updated: Added custom page include feature
git at vocs.unideb.hu
git at vocs.unideb.hu
Fri Jun 15 15:57:01 CEST 2018
The project "OpenBioMaps GIT repository":
The branch, master has been updated
via c28a0925fc87cbc39d3fed2eadffa0b8cd839099 (commit)
from 62d85a6b7bae0fe2aafbf35195fa6eddf6617feb (commit)
- Log -----------------------------------------------------------------
commit c28a0925fc87cbc39d3fed2eadffa0b8cd839099
Author: Bán Miklós <banm at vocs.unideb.hu>
Date: Fri Jun 15 15:43:47 2018 +0200
Added custom page include feature
If "includes/custom_pages.php" exists, its content will be loaded into
the #holder div (area between header and footer).
This option has been created to support easy creation of custom
subpages.
Example .htaccess lines:
RewriteRule (gyik)/$ /projects/lepke_halo/index.php?includes=gyik&%{QUERY_STRING} [NC,L]
RewriteRule (gyik)/(.*)/$ /projects/lepke_halo/index.php?includes=gyik&subpage=$2&%{QUERY_STRING} [NC,L]
Lines from the custom_pages.php:
if ($custom_load_page=='gyik') {
...
if ($clp_subpage!='') {
if ($clp_subpage=='miert jott letre az oldal') {
...
<ul>
<li /><a class='subpage' data='parent=gyik' href='miert jott letre az oldal/'>Miért jött létre az oldal? Mi a honlap célja?</a>
External url to load custom page (in footer.php.inc):
<a class='fl' href='<?php echo $ref ?>gyik/'><i class='fa fa-info-circle fa-fw'></i> Az oldalról (GYIK)</a>
-----------------------------------------------------------------------
Summary of changes:
libs/create_new_project.php | 2 +-
templates/initial/root/.htaccess | 46 +++++++++++++---------
.../initial/root/UMS_REPOSITORY/repository.db | 10 +++++
3 files changed, 39 insertions(+), 19 deletions(-)
--
OpenBioMaps GIT repository
More information about the Devel
mailing list