PHP loop with article_id

Dear all,

I would like to create a php loop that shows something different depending on the Article ID. This loop will be used in the footer.
For that I need to pass the article ID.

One way I’ve been suggested is:
$id_article ="#ENV{id_article}";

Is there a more elegant way to do that?

Thank you!! Wish you all a good week!
MomoM

1 « J'aime »

As for elegance, you ought to use SPIP, because SPIP is excellent at showing « something different depending on the article ID ».

1 « J'aime »