Forum Discussion
tsrisudh
8 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
- 8 days ago
- 2 months ago
- 2 months ago
- 2 months ago
- 2 months ago