Wikiarguments add page

Материал из Вікі Фаланстэра
Перейти к: навигация, поиск

Example for about page.

  • add entry to public_html/commonHeaders.php:
include("./pages/about.php");
  • add entry to 'pages' table:
about, about, PageAbout, about.php
  • add entries to localization table:
ABOUT_US, be, <text>
ABOUT_US, ru, <text>
ABOUT_US, ru, <text>
HTML_META_TITLE_ABOUT, be, <title text>
HTML_META_TITLE_ABOUT, be, <title text>
HTML_META_TITLE_ABOUT, be, <title text>
  • add files:
public_pages/pages/about.php
public_pages/tpl/charity/about.php
  • add entry to .htaccess:
RewriteRule ^about/$         index.php?pageTitle=about [L]