[opencms-dev] OpenCms 9.5.3: auto reload after editing or adding news in a news list

Martin Kucharczyk kucharczyk at silpion.de
Tue Aug 2 14:26:27 CEST 2016


Hello, 

has anyone found a solutions for this Problem? 

I am using OpenCms 10.0.1 and it is not working: 



<c:if test="${cms.edited}"> 
<!-- enforce an automatical reload, when the content is edited or moved to another container --> 
${cms.enableReload} 
<p>Script result not available after edit or move operation. Page is automatically reloaded.</p> 
</c:if> 

It show the <p> content, but it is not reloading 

Best Regards 
Martin 

----- Ursprüngliche Mail -----

Von: "Kai Schliemann" <K.Schliemann at comundus.com> 
An: "The OpenCms mailing list" <opencms-dev at opencms.org> 
Gesendet: Freitag, 3. Juni 2016 10:58:08 
Betreff: Re: [opencms-dev] OpenCms 9.5.3: auto reload after editing or adding news in a news list 



Hi Antonio, 

thanks a lot. 

Unfortunately it is still not working. And I cannot figure out why. 

On the hand, we have an events list and whenever I create a new entry, it is automatically shown after saving it. 

And we do not use the enableReload method here. 

Is there some other setting, which triggers the reload? 



Best regards 

Kai 




Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Antonio Cordeddu 
Gesendet: Dienstag, 31. Mai 2016 10:11 
An: The OpenCms mailing list <opencms-dev at opencms.org> 
Betreff: Re: [opencms-dev] OpenCms 9.5.3: auto reload after editing or adding news in a news list 





Hi Kai, 

you have to test if the page was edited, as in the following piece of code: 

<c:if test="${cms.edited}"> 
<!-- enforce an automatical reload, when the content is edited or moved to another container --> 
${cms.enableReload} 
</c:if> 

This works for me in OpenCms version 9.5.3. I hope this helps you. 

Kind regards 
Antonio Cordeddu 

_______________________________________________ 
Coranto informatica di Antonio Cordeddu 
antoniocordeddu at coranto.it 
http://www.coranto.it 
_______________________________________________ 




On 30/05/2016 20:48, Schliemann, Kai wrote: 




Hi list, 

does anybody know, how to automatically reload the current page after adding or editing a news in a news list? 

I placed ${cms.enableReload} inside my news list formatter, but it does not help. 

I am using 9.5.3. 

The documentation says: Placing ${cms.enableReload} somewhere in your formatter will result in an automatically page reload when a content is edited (or moved to a different container). 



Best regards 

Kai 




_______________________________________________ 
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 






_______________________________________________ 
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 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160802/f86b291a/attachment.htm>


More information about the opencms-dev mailing list