Class LoadPathDirective

java.lang.Object
ch.tocco.nice2.dms.impl.freemarker.LoadPathDirective
All Implemented Interfaces:
Nice2TemplateDirective, TemplateIdentifiers, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

public class LoadPathDirective extends Object implements TemplateIdentifiers, Nice2TemplateDirective
This directive loads the HTTP path of a node. Parameters: * entity (required): The entity which represents the node. * name (optional): The name of the variable to load the path to. If no name is passed, the path is printed. * fieldName (optional): The name of the field if the given entity is not a resource entity * public (optional): Set to true to enforce the absolute public path regardless of the current context
  • Constructor Details

  • Method Details

    • execute

      public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
      Specified by:
      execute in interface freemarker.template.TemplateDirectiveModel
      Throws:
      freemarker.template.TemplateException
      IOException