How to output the values of FS_INDEX?
Author: Yamini
Publication Date: 12/18/2019 11:17
Hello Community!
I have used FS_INDEX to store some of the name of users (First name and last name) in the meta data template.
I want to make this information visible on the page for which I have used $CMS_VALUE(#global.page.meta("Identifier_Fsindex","inherit"))$
The output that I get is:
"de.espirit.firstspirit.generate.values.IndexConverter$IterableAccessor@6a4fc9e1"
How do I get the first name and last name from fs_index as output on the page?
Tags: database, fs_index, metadata, template, web-edit
-
Author: bIT_sosswald - 12/18/2019 12:10
Hello Yamini,
just take a look into the corresponding documentation: FirstSpirit Online Documentation - Access to FS_INDEX
As you can see in the value that is in your output a FS_INDEX is containing an iterable which is basically a list. (You maintain a list of entries in a FS_INDEX)
So you have to iterate over the FS_INDEX. Just using $CMS_VALUE()$ will output the underlying java object which will result in the output you have currently.
Greetings
Sandro
0
Please sign in to leave a comment.
Comments
1 comment