[opencms-dev] Best practice for fixing xmlcontent before publication
Cavva79
davide.cavarretta at gmail.com
Wed Sep 26 17:05:44 CEST 2012
Thank you a lot
:-)
Claus Priisholm wrote:
>
> You can hook into the publishing process by listening for
> EVENT_BEFORE_PUBLISH_PROJECT in an event listener.
>
> I use this to validate the content of files before publishing them
> (skipping them if they do not validate).
> That is different from what you are trying to do in that it does not
> alter the content but rather remove resources from the publish list.
> At least the part of removing the resource from the list is not
> possible unless your work around a protected API (it works though), so
> there may be some caveats when it comes to altering the content of the
> file at that point.
>
> Brs
> Claus
>
> 2012/9/18 Cavva79 <davide.cavarretta at gmail.com>:
>>
>> Hi all,
>>
>> I am trying to develop a "fixing" content action just before publish a
>> resource on Opencms 8.0.4. It has to add or change some properties and
>> round
>> a one xml date value.
>>
>> I tried to do it implementing I_CmsModuleAction overriding publishProject
>> with no luck.
>>
>> Any suggestion?
>>
>> thank you in advance
>>
>> Davide
>> --
>> View this message in context:
>> http://old.nabble.com/Best-practice-for-fixing-xmlcontent-before-publication-tp34446354p34446354.html
>> Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please
>> visit
>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>
>
>
> --
> Claus Priisholm
> +45 48 22 46 46
> cpr (you know what) codedroids.com
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
--
View this message in context: http://old.nabble.com/Best-practice-for-fixing-xmlcontent-before-publication-tp34446354p34482587.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list