Viewing 1 post (of 1 total)
  • Author
    Posts
  • nimmzo Friend
    #152729

    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! 🙂

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  nimmzo 14 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum