Hello Mattias,
I come back to your first post :
So... I have the information in a variable. Is it possible to pass it to the
spip loop somehow?
No, you can't: it's a little bit as the problem of the chicken and the egg.
the reason is that SPIP is interpreted first, and then the result stored in the cache.
(see : http://www.spip.net/en_article2068.html) The SPIP loops are interpreted and ot genereates php pages with no more SPIP code. And the php code is recalculated each time you call the page, but no longer the SPIP code and the consequent calls to the MySQL database.
So, what about if your php variable has different values at each execution? In other words, the cache systems makes no sense to consider interpreting SPIP after php.
It's a bit sad the first time you here that, but on another hand, the cache system is one of SPIP strengths.
There are indeed some variables that you can handle within SPIP, like id_article , as you say. but these are few and specific (the id_ 's and see variables debut_ Les critères communs à toutes les boucles - SPIP)
You should consider re-thinking what you want to do, and there should be a proper SPIP-oriented way to do it.
Particularly, do not hesitate to use rubrique=NN.html skeletons. It may seem a "dirty" way for programers, but it's a good way in SPIP. To merge common parts of skeletons (menus, headers, bars, etc) use the <INCLURE(...)> command.
regards,
daniel
there is an article on spip, php and javascript, but in french:
http://www.uzine.net/spip_contrib/article.php3?id_article=50
---
Daniel Viñar Ulriksen
dani@easynet.fr