[opencms-dev] Module for automating the publication andunpublication

Olli Aro olli_aro at yahoo.co.uk
Thu May 12 20:49:23 CEST 2005


Aaah, that would be a downside with this approach (has not affected us since
our sites always serve html content dynamically). So, what you are after is
not possible with this approach, sorry :(

I think you need to try to hack the launcher class to achieve this...

Olli  

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

Thanks Olli,

The system automatically send back 404 response if content is not live ;) 
But, it just happens when the page is accessed dynamically, not to static
pages :( 
Please, tell me if your module, or any other remove automatically the
expired pages on export folder? 

If the module doesn´t publish the pages automatically ( change the state
of the page from offline to online on OpenCms ) , how the module works to
"start a file" with the property start_date?
Sorry the misunderstanding. Before, I was thinking that your module could
change the state of the page from offline to online on OpenCms and
vice-versa. 

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


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>



_______________________________________________
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