Quick Nav:  Online Store   |   Login | Register

Plug in docs

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
llong
<100 Posts
Posts:96


11/17/2007 1:46 PM  

John,

Have you (can you) posted a manual or other resources for creating a PageBlaster plug-in?

Lance

John Mitchell
Posts:3033


11/17/2007 2:05 PM  
Hi Lance,
No I haven't, but that is a good idea.

Basically, you just need to create a class in your project that inherits from IFilterProvider which you can get from referencing the Snapsis.HttpModules.PageBlaster DLL.

After inheriting from IFilterProvider you will need to implement the Write method.
The Write method takes a string as input and returns a string.
In your Write method the input string will be the current output of the page which you can take and manipulate any way you want, then return it.

You will also need to implement the RulesXML property, but you don't have to do anything with that property.
If you do want to use it, it will be set with the RulesXML from that section of the config file.

After you have your plug-in compiled, you add it to the pipeline by putting it into the Snapsis.PageBlaster.Config file just like the Generic one that is there by default.

Let me know if you have any other questions.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software