[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:49:20 CEST 2016


Yes, cms:enableade is in my template. 

I was using firefox, but now in chrome it works. 

Thank you! 

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

Von: "Honey Bhandari" <Honey.Bhandari at cognizant.com> 
An: opencms-dev at opencms.org 
Gesendet: Dienstag, 2. August 2016 14:31:07 
Betreff: Re: [opencms-dev] OpenCms 9.5.3: auto reload after editing or adding news in a news list 



I hope you have cms:enableade in your template. 



What browser are you using? It works for me in Chrome, but sometimes doesn’t work in IE. 



Regards 

Honey 




From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Martin Kucharczyk 
Sent: Tuesday, August 02, 2016 5:56 PM 
To: The OpenCms mailing list <opencms-dev at opencms.org> 
Subject: Re: [opencms-dev] OpenCms 9.5.3: auto reload after editing or adding news in a news list 





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 












This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. 
_______________________________________________ 
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/7d67bbee/attachment.htm>


More information about the opencms-dev mailing list