syedkabeer
I'm new here

FSPreview Files while generation time

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$

0 Kudos
1 Reply
kohlbrecher
Crownpeak employee

Hi,

I'm not sure if I really understand what your goal is. If you need the preview as real html I don't think that this will work. Maybe there is an other way to solve your problem.

Can you please explain why you need the preview as a html file?

Best regards

Jan

0 Kudos