I have noticed that when I insert the DateTime snippet in a template it needs to be reloaded every day. Some one can help me?
-
☆ A M B ☆
- 24,524 Posts
How do you have the snippet tags? [[...]] or [!..!] the [[ method will cache the snippet along with the rest of the page, while [! will cause the snippet to be re-calculated on each page load.
I use the [[ method. Now I try the second one and tomorrow I control the result. Thank you for all.
-
☆ A M B ☆
- 24,524 Posts
Any snippet whose output is liable to change needs to be in the [!...!] form. This includes the WebLogin snippet, or else it will continue to display the login form instead of the logout link after a user logs in!
Tnk again. Very useful!! How to load also a TV every time the page is loaded?
It will be loaded and cached by the system. If you want to assign TV to a template to be used, then do it from the resources/template variables admin.
Is that what you ask?
Hope it answers your quesiton
Yes, of course. But when I put a TV that load an external file like "@FILE news/news.txt", if I change the content of the file every day, I need to reload the site to activate the changes. So, I ask if there is a way to reload automatically the content of a TV (in this case the content of the file news.txt) without to enter in the manager and to press reload the site, exacly as the difference between [[ and [! for the snippets.
Thank you.
ModX is incredible!
It’s a good trick, and works fine! Thank you