sivaprasad9394
Occasional Collector

How to get the boolean value for getFolderLangSpec() via Script BeanShell?

Hello Team,

I would like to get the value for the each folders getFolderLangSpec() visiblity and sitemap is true or false via Template Script.

Template Code:

$CMS_SET(set_checkbox_status)$
$CMS_RENDER(script:"pagereffoldercheck",element:#global.node, languageAbbreviation:#global.language)$
$CMS_END_SET$

 

 

How to get the value for the below line of code:

flag_Navigation_Menu = currentCrumb.getFolderLangSpec(lang).isVisible();
flag_Sitemap = currentCrumb.getFolderLangSpec(lang).getShowInSiteMap();

 

Thank you,

Siva

Labels (2)
Tags (2)
0 Kudos
1 Reply
sivaprasad9394
Occasional Collector

Re: How to get the boolean value for getFolderLangSpec() via Script BeanShell?

To get the value true or false used it like below in the Script.

Due to other script errors it was not working  earlier.Now Its working.

Thank you.

0 Kudos