On Mon, Oct 27, 2008 at 6:43 PM, alinome.net <[EMAIL PROTECTED]> wrote:
>
> Markups are executed in certain group order, but markups in the same
> group are executed in the order they were created. That causes a
> little problem:
>
> As I create new markups, I often found I have to remove current
> markups only to define them again without any change after the new
> ones. In the following case I needed my WikiCreole image markup to be
> rendered before the current links markup, so images could be used as
> link labels:
>
> MarkUp('links', 'links', ''); // remove original links, so uploads2
> will render first
>
> MarkUp('links', 'uploads2', '/\{\{(.*?)\}\}/e',
> 'BOLTMmyuploads("$1")'); // {{ }} upload
>
> MarkUp('links', 'links', '/\[\[(.*?)\]\]/e', 'BOLTMlinks("$1")'); //
> create original links again!
>
> If I would modify the original markups.php I could simply insert my
> new markups into the desired place, but I write my markups in the
> config.php, what is better for other reasons.
I think you should be able to just do:
MarkUp('links', 'uploads2 < links', '/\{\{(.*?)\}\}/e',
'BOLTMmyuploads("$1")'); // {{ }} upload
and it will insert your uploads2 rule immediately before the links
markup. :) Note there is not a < option however...
Cheers,
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---