Forum Discussion

srinivaskiranp's avatar
7 years ago

how to use ${coreNode.settings.name.name_last}

Hi  In the the below code snippet is a freemarker context object in that what is the name_last means ?. How can i use coreNode.settings to get the settings of a specific category node,blog node, b...
  • luk's avatar
    luk
    7 years ago

    As Parshant wrote, you use the call:

    http://community.lithium.com/<communityid>/restapi/vc/settings/name/name_last/set?value=<yourvalue>

    but notice the ?value=yourvalue part that was missing in his post, that's how you pass the value...

    and of course you have to adapt the API path to reflect the node where you want to set the setting value, the above call will set it on community level, if you want it for a category for example, you would do:

    http://community.lithium.com/<communityid>/restapi/vc/categories/id/<categoryid>/settings/name/name_last/set?value=<yourvalue>