Accessing a declared database

Every additionally declared database can be accessed using SPIP loops as follows:

<BOUCLE_externe(name:TABLE)>

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 a wordpress.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 Mark Baber Published : Updated : 12/03/23

Translations : English, français, Nederlands