<BOUCLE_externe(name:TABLE)>
Accessing a declared database
Every additionally declared database can be accessed using SPIP loops as follows:
The {{name}} parameter corresponds to the name of the connector file.
Example
In testing with WordPress some time ago, the author was able to establish a functional database link. By creating awordpress.php
connector file, it was possible to recover the last 5 published articles with the code shown below:
<BOUCLE_articles(wordpress:WP_POSTS){0,5}{!par post_date}{post_status=publish}>
<h2>#POST_TITLE</h2>
<div class="texte">#POST_CONTENT</div>
</BOUCLE_articles>
Author Published : 07/12/09
Translations : English, français, Nederlands