Forum Discussion
tsrisudh
7 years agoAdvisor
You can use the below code to get custom content data in the component
<#assign nodeType = coreNode.nodeType />
<#assign nodeID = coreNode.id />
<#if nodeType=='board'>
<#assign content =
restadmin("/boards/id/"+nodeID+"/settings/name/customcontent.10_text").value
/>
<#else>
<#assign content =
restadmin("/categories/id/"+nodeID+"/settings/name/customcontent.10_text").value
/>
<#assign nodeType = coreNode.nodeType />
<#assign nodeID = coreNode.id />
<#if nodeType=='board'>
<#assign content =
restadmin("/boards/id/"+nodeID+"/settings/name/customcontent.10_text").value
/>
<#else>
<#assign content =
restadmin("/categories/id/"+nodeID+"/settings/name/customcontent.10_text").value
/>
Related Content
- 5 years ago
- 4 years agoInactive User
- 2 months ago