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

Schliemann, Kai K.Schliemann at comundus.com
Fri Jun 3 10:58:08 CEST 2016


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<mailto: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







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


More information about the opencms-dev mailing list