warthds
I'm new here

Re: E-Mail versenden aus dem Java FS Client

Jump to solution

Hi,

wie gesagt direkt im ChannelSourceProvider:

Example usage:

final TemplateStoreRoot templatestore = (TemplateStoreRoot) userService.getStore(Store.Type.TEMPLATESTORE, false);

    ChannelSourceProvider csp = templatestore.getPageTemplates().getTemplate("standard");

    csp.setLock(true, false);

    // e.g. use default (first) template set

    final TemplateSet templateSet = userService.getProject().getTemplateSets().get(0);

    try {

        final String source = csp.getChannelSource(templateSet);

        csp.setChannelSource(templateSet, "$-- (c) e-Spirit AG 2007 --$\n" + source);

        csp.save("channel source set via API", false);

    } finally {

       csp.setLock(false, false);

    }

0 Kudos