History log of /dokuwiki/inc/parserutils.php (Results 126 – 150 of 180)
Revision Date Author Comments
# b8595a66 05-Aug-2007 Andreas Gohr <andi@splitbrain.org>

separated TOC from page

This patch introduces a tpl_toc() function which can be used to freely place
the Table of Contents in a template. When used, tpl_content should be called
with a parameter of

separated TOC from page

This patch introduces a tpl_toc() function which can be used to freely place
the Table of Contents in a template. When used, tpl_content should be called
with a parameter of false to supress the automatic TOC placement.

Note: if tpl_toc() us run *before* tpl_content(), TOCs will not work in the
preview. A work around is to run tpl_content() in a output buffer first.

This patch also adds a getTOC() function for admin plugins which allows plugin
authors to put create their own TOC which will be placed correctly in the
template. A convenience function html_mktocitem() is available.

The config manager was adjusted to make ue of this new feature, but some bugs
might remain.

darcs-hash:20070805132405-7ad00-77d2c3cdf66cc62b2d408cc6580f938636a109af.gz

show more ...


# 5f70445d 03-Mar-2007 Andreas Gohr <andi@splitbrain.org>

added getFormat() function to renderer

Each renderer has to supply a getFormat() function returning the format it
produces. Usually this is the same as the classname of the renderer (or Plugin)
says

added getFormat() function to renderer

Each renderer has to supply a getFormat() function returning the format it
produces. Usually this is the same as the classname of the renderer (or Plugin)
says but it does not need to be necessarily.

Fixes a problem with the wrong format being reported to plugins when a
render plugin was used.

darcs-hash:20070303214102-7ad00-3f87d8a10e94f4c6c30bacc8f43486b94ecdb146.gz

show more ...


# 47b2d319 03-Mar-2007 Andreas Gohr <andi@splitbrain.org>

never build instructions twice in the same run FS#1090

When a page was called with purge

darcs-hash:20070303202232-7ad00-03e05dc32646563688307ae51b6594d223bad938.gz


# ea2a4271 03-Mar-2007 Andreas Gohr <andi@splitbrain.org>

only debug when in xhtml mode in parserutils.php

darcs-hash:20070303195008-7ad00-880996042e703973c56d38f803f79555256dbe84.gz


# 59f042c9 22-Feb-2007 chris <chris@jalakai.co.uk>

fix rendered metadata detection problem

see http://www.freelists.org/archives/dokuwiki/02-2007/msg00207.html from Todd Augsburger

darcs-hash:20070222162434-9b6ab-d894563322227cfe4a018f649d8eebc9aec

fix rendered metadata detection problem

see http://www.freelists.org/archives/dokuwiki/02-2007/msg00207.html from Todd Augsburger

darcs-hash:20070222162434-9b6ab-d894563322227cfe4a018f649d8eebc9aec4a161.gz

show more ...


# 37f8b546 02-Feb-2007 Tom N Harris <tnharris@whoopdedo.org>

Show file name in debug comment when creating new cache.

darcs-hash:20070202063800-6942e-529cee02f506a5c221e2da33fd0720380752c37f.gz


# 3b3f8916 28-Jan-2007 Andreas Gohr <andi@splitbrain.org>

small fix for metadata rendering if instructions aren't available

darcs-hash:20070128113952-7ad00-e7293a11680aed2cd88aac49d2a8b612bd0e61ee.gz


# fc18c0fb 26-Jan-2007 chris <chris@jalakai.co.uk>

fix FS#1010

darcs-hash:20070126204145-9b6ab-db7eba9c6045584a381eb83ae48787627973532b.gz


# c327d6c4 20-Jan-2007 Andreas Gohr <andi@splitbrain.org>

Some renderer plugin updates

The namingscheme for renderer plugins now matches the other types, the plugin
manager now returns info on renderer plugins, too

darcs-hash:20070120002731-7ad00-fcea93a6

Some renderer plugin updates

The namingscheme for renderer plugins now matches the other types, the plugin
manager now returns info on renderer plugins, too

darcs-hash:20070120002731-7ad00-fcea93a6a6da807103b6aa82d6472196125cb3ec.gz

show more ...


# 6102af7d 07-Dec-2006 Ben Coburn <btcoburn@silicodon.net>

rerender and save metadata fix

darcs-hash:20061207003216-05dcb-4d15587ec2d6f5ad132edcf60f0cba448d0c5263.gz


# 2d5ccb39 03-Dec-2006 Andreas Gohr <andi@splitbrain.org>

pluggable renderers

Plugins can now provide their own renderer in lib/plugins/<name>/renderer.php
The class inside this file needs to inherit from Doku_Renderer and has to be
called Doku_Renderer_<n

pluggable renderers

Plugins can now provide their own renderer in lib/plugins/<name>/renderer.php
The class inside this file needs to inherit from Doku_Renderer and has to be
called Doku_Renderer_<name>

To access the renderer the export action can be used eg: ?do

darcs-hash:20061203190138-7ad00-f56b470b5dd043e1168ff2101c677eb8a9851627.gz

show more ...


# 0a7e3bce 26-Nov-2006 chris <chris@jalakai.co.uk>

metadata update to support both persistent and non-persistent metadata

Key changes:
- metadata stored on disk in two arrays, 'current' & 'persistent'
- p_set_metadata has an additional parameter, $p

metadata update to support both persistent and non-persistent metadata

Key changes:
- metadata stored on disk in two arrays, 'current' & 'persistent'
- p_set_metadata has an additional parameter, $persistent, which defaults to true
- metadata set within the renderer defaults to non-persistent
- new event hook, PARSER_METADATA_RENDER, which wraps around metadata rendering process. For
full details of this event refer to the event list documentation at splitbrain.

The patch includes automatic conversion of metadata in current form to the new format

For more details also see http://www.freelists.org/archives/dokuwiki/11-2006/msg00221.html
and any follow-up messages.

darcs-hash:20061126152144-9b6ab-a4e40c221e0274b13da07dc2fc1d2100f5f3a50e.gz

show more ...


# 8cfffb85 27-Oct-2006 chris <chris@jalakai.co.uk>

code highlighting fragment cache update

expire the cache if GeSHi (inc/geshi.php) has been updated since cache creation

darcs-hash:20061027015051-9b6ab-f633dc5130ff23f0eb8871e4f8afb563fff3dc5b.gz


# 6afe8dca 04-Oct-2006 chris <chris@jalakai.co.uk>

update p_get/set_metadata to use $INFO['meta']

This patch updates p_get_metadata() to utilise the in memory copy
copy of the current page's metadata ($INFO['meta']) when appropriate.

The patch also

update p_get/set_metadata to use $INFO['meta']

This patch updates p_get_metadata() to utilise the in memory copy
copy of the current page's metadata ($INFO['meta']) when appropriate.

The patch also updates p_set_metadata() to synchronise any changes
to the current page's metadata with $INFO['meta'].

$INFO hash is updated with two new elements:
'id'

darcs-hash:20061004210030-9b6ab-7eab6f933a775fe350a1fb14d1118ea77d2db919.gz

show more ...


# 44a35da6 23-Sep-2006 chris <chris@jalakai.co.uk>

p_get_first_heading simplification

darcs-hash:20060923204905-9b6ab-da3e9751c07c1bd07cf6583ecc5d92c2ce95097c.gz


# 4b5f4f4e 11-Sep-2006 chris <chris@jalakai.co.uk>

parser caching update

This patch primarily updates p_cached_xhtml() and p_cached_instructions() to
allow their caching logic to be surrounded by an event trigger.

p_cached_xhtml() has been rewritte

parser caching update

This patch primarily updates p_cached_xhtml() and p_cached_instructions() to
allow their caching logic to be surrounded by an event trigger.

p_cached_xhtml() has been rewritten as the more general p_cached_output() to
support other render output formats besides 'xhtml'. All calls to
p_cached_xhtml() have been changed to refer to the new function.

New event:

name: PARSER_CACHE_USE
data: cache object (see below)
action: determine if cache file can be used
preventable: yes
result: bool, true to use cache file, false otherwise

Cache operations have been generalised in a new class, cache, extended to
cache_parser, cache_renderer & cache_instructions. Details can be found in
inc/cache.php

For handling of above event, key properties are:
- page, if present the wiki page id,
may not always be present, e.g. when called for locale xhtml files
- file, source file
- mode, renderer mode (e.g. 'xhtml') or 'i' for instructions

Other changes:
- cache class counts cache hits against attempts, results are stored in
{cache_dir}/cache_stats.txt
- adds metadata dependency to renderer page cache
- replaces purgefile dependency for renderer cache with metadata
'relation references' (internal link) dependency for wiki pages only

darcs-hash:20060911021418-9b6ab-19601ed194b8c8e45236ab72c3e23d78bf777e6c.gz

show more ...


# d978e24c 06-Aug-2006 Andreas Gohr <andi@splitbrain.org>

GeSHi fixes

This fixes a bug in GeSHi which adds an addtional newline (patch sent to
upstream) and makes sure the code highlighting cache honors the purge
request variable.

darcs-hash:2006080620425

GeSHi fixes

This fixes a bug in GeSHi which adds an addtional newline (patch sent to
upstream) and makes sure the code highlighting cache honors the purge
request variable.

darcs-hash:20060806204258-7ad00-56ad794b90b8ad38f62e8e4d9e430a8622636bc5.gz

show more ...


# 852896da 30-Jul-2006 Andreas Gohr <andi@splitbrain.org>

strip trailing line in higlighted code

The current code add 2 unwanted trailing lines in highlighted code. One is produced
by DokuWiki's syntax and is fixed by this patch. The second one is created

strip trailing line in higlighted code

The current code add 2 unwanted trailing lines in highlighted code. One is produced
by DokuWiki's syntax and is fixed by this patch. The second one is created somewhere
inside GeShi. A bug report was submitted upatream [1]

[1] http://sourceforge.net/tracker/index.php?funcÞtail&aid31373&group_id4997&atidg0231

darcs-hash:20060730201442-7ad00-222a23a3bfccd7c53105e7175cdc9992be2d8076.gz

show more ...


# 8f7d700c 28-Jul-2006 chris <chris@jalakai.co.uk>

Provide a fragment cache for GeSHi output

darcs-hash:20060728225649-9b6ab-124a5511574bd9955f56d0426586f877b9ec66c8.gz


# 677844af 24-Jul-2006 chris <chris@jalakai.co.uk>

additional events

PARSER_WIKITEXT_PREPROCESS
RENDERER_CONTENT_POSTPROCESS

Both have been implemented as signals, that is without any action and
therefore there will be no results during the _AFTER

additional events

PARSER_WIKITEXT_PREPROCESS
RENDERER_CONTENT_POSTPROCESS

Both have been implemented as signals, that is without any action and
therefore there will be no results during the _AFTER event

darcs-hash:20060724193434-9b6ab-e48d13d06da55122e501a686f9b841f7b3c97dfe.gz

show more ...


# 796bafb3 18-Jun-2006 Andreas Gohr <andi@splitbrain.org>

updated hierarchical breadcrumbs

Third part of the global start series

darcs-hash:20060618113532-7ad00-46a62cc819c41ead8a16bc3f6c6d1bf67d9c6bf4.gz


# 8716966d 28-May-2006 Andreas Gohr <andi@splitbrain.org>

Use meta data in RSS feed

darcs-hash:20060528133552-7ad00-8281720582dbc448534f35cc978e9c8175b54f0d.gz


# 95dbfe57 30-Apr-2006 Andreas Gohr <andi@splitbrain.org>

metadata enhancements

This adds meta data rendering to the indexer process to build missing meta data
in the background.

p_get_first_heading was adjusted to make use of the new meta data mechanisms

metadata enhancements

This adds meta data rendering to the indexer process to build missing meta data
in the background.

p_get_first_heading was adjusted to make use of the new meta data mechanisms

A problem with unitialized arrays in p_set_metadata and PHP5 was fixed (I think)

darcs-hash:20060430181740-7ad00-8952fa6beb4fadf6b4321627998442d34febfc8d.gz

show more ...


# 39a89382 15-Apr-2006 Esther Brunner <esther@kaffeehaus.ch>

new metadata renderer; functions p_get_metadata() and p_set_metadata()

darcs-hash:20060415104627-283c4-c7d35620fc9dbc21b8a47089692b76d35a9f9ca8.gz


# e1c10e4d 09-Apr-2006 chris <chris@jalakai.co.uk>

Parser Update:

- revisions to header class and section handling
header pattern simplified
header class now writes section open and close instructions
section call writer removed
check for an

Parser Update:

- revisions to header class and section handling
header pattern simplified
header class now writes section open and close instructions
section call writer removed
check for and update meta['first_header'] if required (see below)

- meta instruction added
written by _finalize to front of instruction stack
holds first header information

plugins can now write first header information, or other page meta information
to this data structure.

- get_first_heading updated to make use of meta['first_header']

- plugin instruction structure changed to include lexer state in the data portion
of the instruction.
OLD INSTRUCTION: array('plugin', array(<plugin name>,<plugin_data>,$pos), $pos)
NEW INSTRUCTION: array('plugin', array(<plugin name>,<plugin_data>,$state), $pos)

- block handler/call writer update to better handle plugin PTypes 'block' & 'stack'.
Lexer states are mapped as follows:
DOKU_LEXER_ENTER, DOKU_LEXER_SPECIAL : block_open, stack_open
DOKU_LEXER_EXIT, DOKU_LEXER_SPECIAL : block_close, stack_close
DOKU_LEXER_MATCHED, DOKU_LEXER_UNMATCHED : plugin must handle <p>

Plugin writers can now use these PTypes as intended !

darcs-hash:20060409214958-9b6ab-cd2cef97a6a2521e3a02175075b8ff4648035f69.gz

show more ...


12345678