hi
I have an xpdo set up to handle data in an external db.
That works fine
but now as I am coding my site,
I find that I reuse some code quite a lot.
for example getting categories from my external db and putting them in an array.
Instead of letting each snippet execute that code over and over,
I would like to put it in a snippet of his own and call that from within the other snippets.
that way I can call my categories cached and I don't need to recode it each time!
But I can't seem to get that working: I always get the error "unexpected [" that is the [ from the snippet call in my snippet
can you still follow?
example [[blabla]] works fine
[[getcategories]]also works fine
but if I use [[getcategories]] in [[blabla]] I get the error above
can anyone help?
[ed. note: djemmers last edited this post 12 years, 2 months ago.]