PHP Classes

File: elemental-sm/html/configure.htm

Recommend this page to a friend!
  Classes of Ilya Nemihin  >  elementalSiteMaker  >  elemental-sm/html/configure.htm  >  Download  
File: elemental-sm/html/configure.htm
Role: Auxiliary data
Content type: text/plain
Description: generated pages
Class: elementalSiteMaker
easy CMS
Author: By
Last change:
Date: 18 years ago
Size: 2,451 bytes


Class file image Download
<p><b>Dir structure</b><pre>/elemental-sm/
<br>  /admin/ - admin
<br>    index.html - modify if you want to use other default lang.
<br>    /cnt/ - here store CNT of page (serialized)
<br>    /templates/ - here templates (skins)
<br>      /default/ - default skin
<br>        page.tpl - template of page
<br>        menu.tpl - template of menu
<br>        menu_delim.tpl - menu's delimiter
<br>        menu_selected.tpl - selected menu item
<br>        menu_unselected.tpl - unselected menu item
<br>    /tmp/ - store sessions
<br>    /translation/ - translation, 
<br>              simple add your file (f.e. de.txt) in this
<br>              directory
<br>      en.txt - file for english
<br>      ru.txt - file for russian
<br>  /html/ - here stored published pages (from CNT)
<br>  /include/ - here all classes
<br>  (main)
<br>    /Config/
<br>      Config.php - here you can config skin name (directory)
<br>    /PageRepository/
<br>      PageRepository.php - here you can configure page
<br>  /offline/ - here generated site stored
<br></p><p><b>How change pages</b>
<br>open <b>PageRepository.php</b>
<br>there is method <b>initPage()</b> there is array:
<br>each page have unique id,
<br>for example page "main", have id "main", and next content:
<br>   main =&gt; array(
<br>             pageName =&gt; 'main',
<br>             pagePath =&gt; 'cnt/main.cnt',
<br>             pageHtml =&gt; '../html/main.html',
<br>             pageURL =&gt; '../?pageId=main'
<br>           ),
<br>pageName - name in menu, 
<br>pagePath - path to CNT
<br>pageHtml - path to HTML (where to generate)
<br>pageURL - url
<br>then there is section array <b>$this-&gt;arraySectionPage</b>
<br>where each page are registered to section, there is two sections: "Page" and "Site"
<br>Section "Site":
<br>  site =&gt; array(
<br>    sectionName =&gt; '',
<br>    pagesOfSection =&gt; array( "main", 
<br>                             "download", 
<br>                             "screens", 
<br>                             "configure", 
<br>                             "author" )
<br>               )
<br><b>Change Password</b>
<br>login and password you can change in file
<br>      admin_pwd =&gt; array( uid =&gt; 1, name =&gt; 'Admin' ),
<br>{login}_{pwd} =&gt;</p>
For more information send a message to info at phpclasses dot org.