docs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs [08-04-2015 09:53]
127.0.0.1 external edit
docs [05-03-2020 01:03] (current)
cwacha
Line 7: Line 7:
  
 You will need: You will need:
-  * [[http://www.php.net|PHP]] (Version 4.or higher) +  * [[http://www.php.net|PHP]] (Version 5.or higher) 
-  * a database (MySQL or SQLite, [[http://adodb.sourceforge.net/|ADOdb]] is used as abstraction layer)+  * a database (MySQL (PDO) or SQLite2 or 3 (sqlite3 or PDO sqlite3)
   * (optional) iconv (if you want to import vcards that are not UTF-8 encoded)   * (optional) iconv (if you want to import vcards that are not UTF-8 encoded)
   * (optional) ImageMagick's convert or GD (if you want to import photos)   * (optional) ImageMagick's convert or GD (if you want to import photos)
Line 179: Line 179:
  
 [[docs:xmlrpc|The XML-RPC API has its own page here]] [[docs:xmlrpc|The XML-RPC API has its own page here]]
 +
 +===== CardDAV Interface =====
 +
 +[[docs:carddav|The CardDAV Interface has its own page here]]
  
 ===== Contact Format ===== ===== Contact Format =====
Line 207: Line 211:
   * creation date   * creation date
   * modification date   * modification date
 +  * UID
  
 ==== Unsupported fields ==== ==== Unsupported fields ====
Line 215: Line 220:
 These fields will not be included since I have absolutely no need for them. The current design is transparent enough for me. These fields will not be included since I have absolutely no need for them. The current design is transparent enough for me.
  
- 
-===== Templates ===== 
- 
-This section describes the HTML template that is currently used. In the current state the template system should be flexible enough to allow you to design a look and feel as you like (and not as the template system likes). 
- 
-The template files have the file ending ''.tpl''. The main file that keeps it all together is called **main.tpl**. 
- 
-  main.tpl 
-     | 
-     +- search.tpl 
-     | 
-     +- tpl_showcontactlist() 
-       +- contactlist.tpl 
-           +- tpl_contactlist() 
-               +- contactlist_item.tpl 
-     | 
-     +- tpl_showperson() 
-         +- person_empty.tpl 
-         | 
-         +- person.tpl 
-           +- tpl_addresses() 
-             +- address.tpl 
-           | 
-           +- tpl_phones() 
-             +- phone.tpl 
-           | 
-           +- tpl_emails() 
-             +- email.tpl 
-           | 
-           +- tpl_chathandles() 
-             +- chathandle.tpl 
-           | 
-           +- tpl_urls() 
-             +- url.tpl 
-           | 
-           +- tpl_relatednames() 
-         | 
-         +- person_edit.tpl 
-             +- tpl_include() 
-               +- person_edit_phones.tpl 
-             | 
-             +- tpl_include() 
-               +- person_edit_emails.tpl 
-             | 
-             +- tpl_include() 
-               +- person_edit_urls.tpl 
-             | 
-             +- tpl_include() 
-               +- person_edit_relatednames.tpl 
-             | 
-             +- tpl_include() 
-               +- person_edit_chathandles.tpl 
-             | 
-             +- tpl_include() 
-                 +- person_edit_addresses.tpl 
- 
- 
- 
-  * //tpl_showcontactlist()// creates the list of contacts. It basically just inserts the file **contactlist.tpl** 
-  * //tpl_contactlist()// iterates over all contacts and outputs one **contactlist_item.tpl** per contact. 
- 
- 
-  * All other functions work the same way, you should get the hang of it. Remark that **person_edit.tpl** does not call any //tpl_functions// since i thouhgt it would be easier to just inline all the code. Other suggestions are welcome. I have never done a template system before, so it might still have some inconsitencies. 
  
  
  • docs.1428479605.txt.gz
  • Last modified: 17-11-2016 12:33
  • (external edit)