Constant Field Values

Contents

org.craftercms.*

  • org.craftercms.engine.freemarker.CrafterTemplateExceptionHandler 
    Modifier and Type Constant Field Value
    public static final String ERROR_FORMAT "<script type=\'text/javascript\'>function showError{errorId}() {document.getElementById(\'error{errorId}\').style.display = \'block\';document.getElementById(\'toggleError{errorId}Btn\').innerHTML = \'Hide error\';}function hideError{errorId}() {document.getElementById(\'error{errorId}\').style.display = \'none\';document.getElementById(\'toggleError{errorId}Btn\').innerHTML = \'Show error\';}function toggleError{errorId}() {if (document.getElementById(\'error{errorId}\').style.display == \'none\') {showError{errorId}();} else {hideError{errorId}();}}</script><a id=\'toggleError{errorId}Btn\' onclick=\'toggleError{errorId}()\' style=\'color: red; font-size: 14px; font-family: Arial, Helvetica, sans-serif; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: underline; text-transform: none; cursor: pointer\'>Show error</a><div id=\'error{errorId}\' style=\'display: none;\'><pre>${error}</pre></div>"
    public static final String FREEMARKER_CURRENT_ERROR_ID_ATTRIBUTE "freemarkerCurrentErrorId"
  • org.craftercms.engine.freemarker.ExecuteControllerDirective 
    Modifier and Type Constant Field Value
    public static final String PATH_PARAM_NAME "path"
  • org.craftercms.engine.freemarker.RenderComponentDirective 
    Modifier and Type Constant Field Value
    public static final String ADDITIONAL_MODEL_PARAM_NAME "additionalModel"
    public static final String COMPONENT_PARAM_NAME "component"
    public static final String COMPONENT_PARENT_PARAM_NAME "parent"
    public static final String COMPONENT_PATH_PARAM_NAME "componentPath"
    public static final String KEY_CONTENT_MODEL "contentModel"
    public static final String KEY_MODEL "model"