Hello,<br><br>In OpenCms 8 there is no longer CmsObject.publishResource(). So I tried to use the CmsPublishManager, but it does not work as expected.<br><br>Here is my code:<br><br><span style="font-family:courier new,monospace">CmsObject cms = OpenCms.initCmsObject("Guest");<br>
cms.loginUser("user", "password");<br>CmsProject project = cms.readProject("Offline");<br>cms.getRequestContext().setCurrentProject(project);<br>cms.getRequestContext().setSiteRoot("/sites/<a href="http://mysite.lu/">mysite.lu/</a>");<br>
<br>CmsPublishManager cmsPublish = new CmsPublishManager();<br>cmsPublish.initialize(cms);<br>cmsPublish.publishResource(cms,"/images/articles/"+no_article);<br></span><br>What's wrong with it?<br><br>Best regards,<br>
Yves<br><br>