@Component public class GetContentAttributeMethod extends BaseMethod
参数列表
返回结果
attribute
:内容扩展数据(字段编码,value
)
<#assign attribute=getContentAttribute(1)/<
${(attribute.text?no_esc)!}
<script> $.getJSON('${site.dynamicPath}api/method/getContentAttribute?appToken=接口访问授权Token¶meters=1', function(data){ console.log(data.text); }); </script>
限定符和类型 | 字段和说明 |
---|---|
protected ContentConfigComponent |
contentConfigComponent |
private CmsContentAttributeService |
service |
log
构造器和说明 |
---|
GetContentAttributeMethod() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
execute(javax.servlet.http.HttpServletRequest request,
java.util.List<freemarker.template.TemplateModel> arguments) |
java.lang.Object |
execute(java.util.List<freemarker.template.TemplateModel> arguments) |
java.lang.Object |
execute(SysSite site,
java.util.List<freemarker.template.TemplateModel> arguments) |
int |
minParametersNumber() |
boolean |
needAppToken() |
exec, getBoolean, getDate, getDouble, getInteger, getIntegerArray, getLong, getLongArray, getMap, getModel, getName, getShort, getString, getStringArray, httpEnabled, setName
protected ContentConfigComponent contentConfigComponent
private CmsContentAttributeService service
public java.lang.Object execute(javax.servlet.http.HttpServletRequest request, java.util.List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException
execute
在类中 BaseMethod
freemarker.template.TemplateModelException
public java.lang.Object execute(java.util.List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException
execute
在类中 BaseMethod
freemarker.template.TemplateModelException
public java.lang.Object execute(SysSite site, java.util.List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
public boolean needAppToken()
needAppToken
在类中 BaseMethod
public int minParametersNumber()
minParametersNumber
在类中 BaseMethod