I’ve created a snippet that pulls data from a databse table and displays it in tabular format. The snippet takes an id as parameter, and this is added to the sql query.
My problem is that if I’ve got more than 1 snippet call (sometimes need the tabular data for different id’s displayed on a page) on the same page, all table data is the same as the last database call that’s been made by the last snippet.
What do I need to do to kinda not cache the snippet database calls and have them all display their own content?
I’ve tried setting the page to no cache-able. Also used the [! !] brackets for the snippet calls, and even used the function_exists() method, but none of them helped.
Please can someone help me?
I’m using the release version of MODx evo, rev.5948
thanks
Ettiene
same problem here, only I use a snippet to generate my menu and the javascript for the menu. Which you should by all means put in the same snippet. I need two calls because the js goes into the header and the menu inside the body.
I really like modxcms, but this "bug" seems really stupid. I don’t want to create two seperate snippets!
Any ideas how to make two calls work? The first works the seconds doesn’t produce any output.
Did you tried to NOT cache the page?
In the manager go to the second TAB and un-check Cache.
Yes, first thing I did ;-)
Are you using placeholders to display the data?