Wikiarguments add page
Материал из Вікі Фаланстэра
Версия от 14:27, 7 декабря 2014; Meequz (обсуждение | вклад) (Новая страница: «Example for about page. * add entry to public_html/commonHeaders.php: <pre> include("./pages/about.php"); </pre> * add entry to 'pages' table: <pre> about, abou…»)
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]