Thanks Blues,

This is indeed a superior approach... And in fact, it would be fairly
easy to tap into the BOLTprocess function. We would just need to find
a way to pass some parametes to it. We've talke about that in another
thread...  Planning to do at some point. I will add this idea
specifically to my todo list to see if we can't implement it at some
point. We might even want to reorganize our whole savepage function to
be more modular. Not sure if we want to go that route though, as some
things could get really messy if certain steps get skipped. But either
way, I'll need more time than I have right now to really delve into
this. Maybe later in the week I might take a first stab at it.

Cheers,
Dan


On Tue, Oct 6, 2009 at 4:39 AM, blues <[email protected]> wrote:
>
> On Oct 5, 7:56 pm, The Editor <[email protected]> wrote:
>> All right. I'll look into this. I suppose we could pass an array back
>> from the custom function--one with content and two with a flag to
>> return or continue processing.  This would allow you to either return
>> immediately, or continue on through the rest of the function.
>
> this would be a step forward. it would allow to inject some custom
> code before the standard function, but not after unfortunately.
>
>
>> Or
>> perhaps we could have an array of functions called in some order, by
>> default including the core page save routine, but not necessarily.
>> This could really open things up--which I like! Can you remember how
>> PmWiki did this? I never got to that point in understanding its inner
>> workings.
>
> the PmWiki way it reminds the array $BOLTstartupProcess which is a
> list of functions to be called at a certain point. the difference
> being that the order of the list is very important.
>
> eg. (the functions are just an example)
> $EditFunctions = array
> ('Stamp','Diff','ReplaceOnSave','SaveData','SavePage');
>
> all the functions take the same args (pagename, content, etc) which
> are passed from one to the other and it is like a pipe through which
> the page goes when saving, with the benefit that you could customize
> (or even disable, let's say) a specific part of the whole process, or
> inject some custom code at a specific point.
>
> blues
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to