Dear Team
There is requirement like download all the pages and store in offline.
We need fs preview pages in generation time , just like a fsstagging folder. But without clicking the preview button.
To achevie the requirement we need pure html code,just like in stagging folder we have .jsp file. But in stagging folder we are using scriplet tags for adding the codition (partal roles.)
See the below code.
In this code. We need if statement execution file (jsp or html).
eg: Code
$CMS_IF(#global.preview)$
$CMS_SET(pageTemp)$$CMS_TRIM(level:4)$<Div class="shortid"><Div style="background-color:$CMS_VALUE(synColor)$;padding:2px 0 2px 0;" class="shortid-lnk ll"><a id="$CMS_VALUE(set_synonym.trim())$" href="$CMS_REF(page.page_reference)$" style="text-decoration:none;">$CMS_VALUE(set_linkArrow)$<span style="vertical-align:middle;">$CMS_VALUE(set_synonym.trim())$</span></a></Div></Div>$CMS_END_TRIM$$CMS_END_SET$
$CMS_ELSE$
$CMS_SET(hrefTemp)$$CMS_RENDER(script:"Portal_CreateLink", pageRef:page.page_reference.getUid(), url:ref(page.page_reference, abs:2).url)$$CMS_END_SET$
$CMS_SET(pageTemp)$$CMS_TRIM(level:4)$<Div class="shortid"><Div style="background-color:$CMS_VALUE(synColor)$;padding:2px 0 2px 0;" class="shortid-lnk ll"><a id="$CMS_VALUE(set_synonym.trim())$" href="$CMS_VALUE(hrefTemp)$" style="text-decoration:none;"$CMS_VALUE(if(hrefTemp.indexOf("HLPFS:") == -1, "", " target=\"_top\""))$>$CMS_VALUE(set_linkArrow)$<span style="vertical-align:middle;">$CMS_VALUE(set_synonym.trim())$</span></a></Div></Div>$CMS_END_TRIM$$CMS_END_SET$
$CMS_END_IF$