Page tree
Skip to end of metadata
Go to start of metadata

Groovy Model Classes can be created with this base. Just be sure to create a matching package structure.

package info.magnolia.groovy.component.models;
import javax.jcr.Node;
import info.magnolia.rendering.model.RenderingModel;
import info.magnolia.rendering.model.RenderingModelImpl;
import info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition;
public class MyGroovyModel extends RenderingModelImpl {
	public MyGroovyModel(Node content, ConfiguredTemplateDefinition definition, RenderingModel<?> parent) {
    	super(content, definition, parent);

	public String execute() {
		return null;

See also

  • No labels