How to write a PageAppendHandler#

What is a PageAppendHandler?

To write a PageAppendHandler you have to implement this interface:

public interface PageAppendHandler {
	
	public String getDataToAppend(String topic, String web, KnowWEUserContext user);
	
	public boolean isPre();

}

The isPre() method should return whether the content should be rendered before the main page content. Otherwise it's appended.

Register new PageAppendHandler in a Module#

To use a new PageAppendHandler within a module you have to pass an instance by overriding the getPageAppendHandlers()-method in your module:

List<PageAppendHandler> getPageAppendHandlers();

Add new attachment

Only authorized users are allowed to upload new attachments.
This page (revision-5) was last changed on 17-Dec-2012 17:39 by constin