How to write a PageAppendHandler#

What is a PageAppendHandler?

To write a PageAppendHandler you have to implement this interface: class='editanchor' sectionid='782bd3b2' />

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:

class='editanchor' sectionid='520599d5' />

List<PageAppendHandler> getPageAppendHandlers();
/