1 osdave Oct 23, 2007 13:46
3 osdave Oct 23, 2007 17:55
hi ¥åßßå,
thanx a lot for your time.
I'm very new to b2evo, so that information about how doing things in b2evo's way is very usefull to me.
I'm looking at these functions, but it's not talking a lot to me, for now. I got a few questions, if I may :)
1. all I see in the code about AdminDisplayToolbar is related to plugins: does that mean that I have to think about this issue as a plugin?
2. is there somewhere in the code of b2evo, or in any plugin you know something similar so I could see those functions in action?
thx again.
ps: I found this [url=http://forums.b2evolution.net/viewtopic.php?t=10042]thread[/url]: it seems that I have an answer to my first question...
4 yabba Oct 23, 2007 17:59
the code_highlighter plugin makes use of all 3 events, it's probably a good start
¥
5 osdave Oct 24, 2007 12:50
well, as I'm running out of time and I don't understand the way plugins are working (for now), I did it changing the code.
I'm sure it's not the best way to do it, but it's working.
Thanx again ¥åßßå for your time, and see you later.
You don't need to hack the core to achieve this, you can add the field by using the AdminDisplayToolbar() event, and then use FilterItemContents() and UnFilterItemContents() to *add* the information to the post content ( we normally add them as a comment like <!--osc_product_id ## --> ).
¥