How to get the boolean value for getFolderLangSpec() via Script BeanShell?
Author: sivaprasad9394
Publication Date: 3/25/2022 14:25
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
Tags: script, template
-
Author: sivaprasad9394 - 3/28/2022 22:43
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
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar