Hi again, frankg.<br><br>I'm glad I could be of assistance. If I understand correctly, all you should do is surround your code with a temporary change of project (I do that when modifying xml files), and optionally a publishing of the file, like this:<br>
<br> CmsProject project = cms.getRequestContext().currentProject();<br> cms.getRequestContext().setCurrentProject( cms.readProject( "Offline" ) );<br> //Here goes the before mentioned code<br>
cms.unlockResource( filePath );<br> cms.publishResource( filePath );<br> cms.getRequestContext().setCurrentProject( project );<br><br>I hope again it helps. Greetings,<br><br>Nacho Fernandez.