Question
3
Replies
2472
Views
infosys
Posted: March 23, 2018
Last activity: March 23, 2018
Closed
How to do HTML fragmentation in pega
Hey all,
I have an html file which contains a very big code, I want to create an html fragment to divide it into smaller piece of code and call it into the main html. please help me out on the same.
Thanks & regards,
Priyanka
***Updated by moderator: Lochan to add Categories***
Hi priyankak0658,
Thanks for posting on PSC.
I would like to understand your business use-case. Are you using custom section having non-auto generated HTML code?
If yes, you can always break your HTML codes into separate sections and save them individually.
In the Main section, please use section include the feature to include and place the fragmented sections created(with smaller pieces of code) as per sequence or you want it to appear on UI.
Use "Embedded section" from layout option in a section to embed(Section Include option for older versions).
Refer below:-
To create the non-auto generated section with fragmented HTML codes.
1. Create a section rule
2. Go to "HTML" tab.
3. Un-Check "Auto-generated HTML" option.
4. Write your smaller pieces of codes in the editor appeared below.
5. Similarly, break the main code into as many fragments you want. At last, create a section "main" and include all the fragmented non-auto generated sections.
Please rectify me, if I lead you to complete astray. If not, hope this helps thus please mark this post as answered.
Regards,
Asif