Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi
  • Page :
  • 1
  • 2

SUJET : Adding new pstpl template file.

Re: Adding new pstpl template file. il y a 1 an 5 mois #96934

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4369
  • Remerciements reçus 828
  • Karma: 381
I don't think you need to go to those lengths to have survey-specific banners.

Place the two banner graphics in your template directory and name them something like banner-28836.png and banner-69731.png.

Then you should be able to use something like this in startpage.pstpl:
<img class="banner" src="{TEMPLATEURL}banner-{SID}.png" />

If you need a default banner, you can use jQuery to modify the src attribute of the image tag.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Dernière édition: il y a 1 an 5 mois par tpartner.
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Adding new pstpl template file. il y a 1 an 5 mois #96936

  • joss
  • Portrait de joss
  • Hors ligne
  • Fresh Lemon
  • Messages : 16
  • Karma: 0
Thanks! It was super easy!
The default banner in the example is banner-.png which is again working.
L'administrateur a désactivé l'accès en écriture pour le public.

Re: Adding new pstpl template file. il y a 1 an 5 mois #96938

  • tpartner
  • Portrait de tpartner
  • Hors ligne
  • LimeSurvey Team
  • Messages : 4369
  • Remerciements reçus 828
  • Karma: 381
The default banner in the example is banner-.png which is again working.
Even easier than JavaScript :cheer:
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
L'administrateur a désactivé l'accès en écriture pour le public.
  • Page :
  • 1
  • 2
Modérateurs: ITEd
Temps de génération de la page : 0.117 secondes
Donation Image