Deterministic banner
This article is for the newbie who wants to make more deterministic 😎 the random banner of JA-Purity template.
That is to say display a specific banner when the visitor visits the articles of a given Joomla category.
If you are not familiar with the random banner supplied in the free JA-Purity template,
have a look firstly to: Joomla JA-Purity random banner,
then Apply separately the style of your banner in a PHP script.
If you are an absolute beginner :-[ with the PHP language, there is a simple session of debug that is provided in:
Debugging BannerStyle.php with (off-line) Joomla.
Finally the PHP code of the deterministic banner is supplied.
It extracts the section and the category of the current friendly URL.
Then a big switch case assigns for a given category a given header image in the style of the banner.
For the categories not specified, the random banner still works! 🙂