Location: PHPKode > projects > XmlWeblication > weblication/content/articles/doc_modules.xml
<?xml version="1.0" encoding="utf-8"?>


  <article aid="doc_modules">	D.M.Y:{br}
	DD.MM.YYYY == date(d.m.Y){br}
	D. M Y     == date(d. M Y){br}
	YYYY       == date(Y){br}
	YY         == date(y){br}
	MM         == date(m){br}
	DD         == date(d){br}
	     
	
	{a name=WritingModules /}[@:0]Writing Modules (Plug-Ins)
 
  [@:desc]MODULE:aid{br}
	will be replaced by the output of module {em}aid{/em}
	
	[@:p][@:weblication]/modules/{em}aid{/em}.php will be called and
	this php-include has to have a function called module_{em}aid{/em}().
	The string returned by this function will be replace module's
	placeholder [_MODULE:aid_] (without _)
	
	[@:p]To enable a Module add an include-line at end of 
	{strong}[@:weblication]/lib/config.php{/strong}
	
	[@:0]Need a sample? 
	[@:p][LINK:doc_modules_sample] 
 
 
 <htmltemplate include="article.html"></htmltemplate>
<contentmenu aid="documentation" />
	
	<title>Modules</title>
	<intro>Modules are used to extend the functionality of [@:weblication]</intro>
	<author email="hide@address.com">Andi</author>
	<date>Dec 12th 2003</date>
		
	[@:p]{ul}
	  {li} [LOCALURL:#PlugIns,List of available Modules]
  	{li} [LOCALURL:#WritingModules,Howto write your own Module]
	  {li} [LOCALURL:#BuiltInModules,Built-In Modules]
		{li} [LINK:doc_modules_sample] 
	{/ul}
	
	[@:0]{a name=ListOfModules /}List of external Modules / Plug-Ins
	
	[@:p]See [LOCALURL:#WritingModules,Writing Modules] to learn how to write your own Modules
	[@:p]See [LINK:doc_listofmodules] for a list of available Modules
	
	
	[@:0]{a name=BuiltInModules /}Built-In Modules
	
	[@:p]Modules may be written in content files as [MODULE :MODULENAME] 
	({em}note that there is no BLANK between MODULE and :{/em}). MODULENAME may be
	one of the following built-in-modules:
	
	[@:desc]EXTURL:url{br}
	will be replaced by an html link to {em}url{/em} which will be opened in a new window.
	
	[@:desc]LINKTOMODULE:aid{br}
	will be replaced by an html link to to the module defined by {em}aid{/em}
	the Application ID of an article or module. 
	
	[@:desc]EMAIL:email{br}
	will be replaced by an html li</article>
Return current item: XmlWeblication