[opencms-dev] Module for automating the publication andunpublication

Olli Aro olli_aro at yahoo.co.uk
Wed May 11 17:18:06 CEST 2005


I am probably the only one who can answer this, since not sure if anyone
else uses this functionality :)

If you have installed everything and included the XML tag in your templates
as described below the system will automatically send back 404 response if
content is not live.

Olli

1) Create an XML template like:

<?xml version="1.0"?>
<XMLTEMPLATE>
<TEMPLATE>
<method name="checkExpiryDate"/>
</TEMPLATE>
</XMLTEMPLATE>

2) Include it to your main template with:

<?xml version="1.0"?>
<XMLTEMPLATE>
<TEMPLATE>
<element name="dataExpiry"/>
.
.
.
<ELEMENTDEF name="dataExpiry">
<CLASS>com.opencms.modules.roundabout.enhancedcontentmodule.ExpiryDate</CLAS
S>
<TEMPLATE>/system/modules/org.opencms.default/elements/DataExpiry</TEMPLATE>
</ELEMENTDEF>
</XMLTEMPLATE>  

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of OpenCms
Sent: 11 May 2005 16:02
To: opencms-dev at opencms.org
Subject: [opencms-dev] Module for automating the publication
andunpublication

Hi all,

Please, I need to know if the module for autmating the publication and
unpublication made by Olli do that job automatically on OpenCms 5.0.1. I
have imported the module and the files to workplace (the wizard to create
new pages works fine). The method to check if a page has expired (
hasExpiredJSP()) works fine too. 
I need urgently to know if that module do the job automatically (maybe
putting something on the scheduler that I don´t know). Or if need I search
the OpenCms API to program the publication and unpublication with the
knowledgement that the page has expired or not?
Hopefully this makes sense,

Thanks in advance,

Henrique Chevreux O. C. Dias
Desenvolvimento
Oriens Tecnologia Ltda.
+55 (31) 2191-8777

"Quando você julga os outros, não os define. Define a si mesmo."  
                                                                          
    Wayne W. Dyer



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/2005
 





More information about the opencms-dev mailing list