Search the FirstSpirit Knowledge Base
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.
Your code should work. Do you have a "save" call after setting the changed channel source?
Your code should work. Do you have a "save" call after setting the changed channel source?
Ah I forgot that. i will do that and let you know.