HTML Channel Modification
Author: vasanth
Publication Date: 12/8/2014 11:29
Hello,
Currently I am working in FS 5 migration Task and one of the task was to change the HTML channel of the template
FormatTemplate tmp = formatTempItr.next();
for (TemplateSet templateSet : tmp.getProject().getTemplateSets())
{
String source = ((ChannelSourceProvider) tmp).getChannelSource(templateSet);
source.replace ("some text","replacement text");
My doubts is how to save the changes back to the template ??
I have tried the below lines of code but it didn't work.
tmp.setChannelSource(templateSet, deprBuffer.toString());
Regards,
Vasandharaj M.
Tags: setchannelsource
-
Author: Peter_Jodeleit - 12/8/2014 12:06
Your code should work. Do you have a "save" call after setting the changed channel source?
0
Please sign in to leave a comment.
Comments
1 comment