Forum Discussion

isxtn's avatar
isxtn
Advisor
2 years ago

settings.get.name for a particular page on Settings List Editor?

I have a particular page that has special fields in the Admin > System > Settings List Editor that are only for that page, although they show up on other pages for SLE as well. 

Currently, 

settings.name.get('custom.event_tag_details','missing event details')/>

 

Gets an empty field since it seems to not be pulling from that board page, only the main settings. 

Is there a way to limit that to a particular page, say "board x"?

I saw there is coreNode.settings.name.get('','') but there is not a lot of documentation other than bare bones. No examples of how to use it. 

https://developer.khoros.com/khoroscommunitydevdocs/reference/settings-1

Do I put the name of the coreNode there or is there some other format?

Thanks

 

  • Hi isxtn 

    I believe using Freemarker objects like this will get the setting for the node your component is currently sitting on. So, for example, if you create a component and add it to the "Forum Page" in studio. Then go to a specific forum on your community it will show the setting for that forum. I don't think you can specify a node id from a different forum. Like if you want the setting for this one event board from the home page, I don't think you can do it this way.

     

    However, you can get a setting for a specific board with APV 1.

    https://[your community]/restapi/vc/boards/id/[your board id]/settings/name/custom.event_tag_details