[opencms-dev] I_CmsEventLintener +Event_before_publish_project--Siblings between folders
maria.freixes_graells at alcatel.es
maria.freixes_graells at alcatel.es
Thu Sep 14 21:08:22 CEST 2006
You mean EVENT_RESOURCE_CREATED for example?
OK, I've implement the an org.opencms.flex.I_CmsEventListener interface
but I don't know how to implement instructions for synchronizing folders
when a publish event occurs.
Anyone?
Any idea?
thanks,
Maria
Jonathan Woods wrote:
> You may find you have to trap other events - e.g. what if only selected
> resources, and not the whole project, are published?
>
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of
> maria.freixes_graells at alcatel.es
> Sent: 14 September 2006 12:09
> To: The OpenCms mailing list
> Subject: [opencms-dev] I_CmsEventLintener
> +Event_before_publish_project--Siblings between folders
>
> Thanks Christian!
> I'm thinking in developing code for syncronize two folders before the
> publish of the project, so, I'll try to create a module as an event
> listener, and then I'm thinking to use the I_CmsEventListener Interface and
> its field: EVENT_BEFORE_PUBLISH_PROJECT.
> Anyone has developed a similar code that can help me?
> Thanks a lot!!!
> Maria
>
>
> Christian Steinert wrote:
>
>>> Hello people!!
>>>
>>> I've a question that I don't know if it's possible to solve.
>>> If I make a sibling to a folder, and I don't have any document into
>>> the original folder, the OpenCms creates an empty copy of the folder.
>>> Then, when I add a file into the original folder, it is not referred
>>> from the sibling folder.
>>> It means: I would like to have a sibling folder that was syncronized
>>> with the original one in creation, modification, deletion.....
>>>
>>>
>>>
>> Dear Maria,
>>
>> Opencms does not support this.
>> Opencms does not even support siblings for a folder. Only pages can have
>>
> siblings and the folder synchronization that you would like to have is not
> supported by opencms.
>
>> I had the same problem and I had to create my own content type, which does
>>
> the replication by following rules that are quite specific for my site.
>
>> But the code is really too specific, too complicated and too connected to
>>
> other parts of my website, so I am sure that my classes would not help you.
>
>> Sorry, but I think there just is no easy solution for this, because
>>
> opencms does not even have the information, which folders "belong to each
> other" (In other words: there are no folder siblings).
>
>> Christian
>> ______________________________________________________________________
>> _ Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und
>> kostenlos.
>> Gleich testen! http://www.pc-sicherheit.web.de/freescan/?mc=022222
>>
>>
>> _______________________________________________
>> 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/mailman/listinfo/opencms-dev
>>
>>
>
>
> _______________________________________________
> 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/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list