|
plugins |
|||
There is one script which runs after the whole page has been built which you can use to apply any final tweaks before the page is delivered. For example you might want to:
architecturedocTree leaves a gap in its page building process right at the end for you to write your own modifications to the code of the page, like thisinclude (findfile("custom.php")); die($tplStr); before finally spitting out the rendered web page. All the global variables and functions of docTree are available to this custom script. The findfile() means that this script can be placed in a website's own custom directory, or nearer the root, where it will be found by its siblings and cousins. If there is more than one custom script applicable to a site, then the deeper ones need to include the next shallowest. Typically, this means that custom/custom.php would have to include ../custom.php (that address is relative to view.php). Most of docTree works using a token replacement system. The template is full of tokens and they are replaced by context specific data, such as the requested page, or its last-modified date, or its relatives according to SITEMAP. This method is all that's required to plug a script in.
$tplStr=str_replace("<!--MYTOKEN-->", $myReplacement, $tplStr); This script is custom.php lives in the custom directory, so if you have permission, you can edit it online and even start writing plugins. contacts databaseThis is a flat file script that runs instead of browse.php and works with three csv files working like database tables to record people, flags, and the links between them Flags can be created and assigned easily, and used for mailing lists. Contacts can be easily exported in csv format. blogreplaces view.php. Put's an invitation to comment at the bottom of every page. This will be re-worked shortly to work as a token and will be integrated to the rest of the system. coming soonAcronym manager |
||||
|