Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1
  • 2

THEMA: Adding new pstpl template file.

Re: Adding new pstpl template file. 1 Jahr 4 Monate her #96934

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4266
  • Dank erhalten: 803
  • Karma: 368
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.
Letzte Änderung: 1 Jahr 4 Monate her von tpartner.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Adding new pstpl template file. 1 Jahr 4 Monate her #96936

  • joss
  • josss Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 16
  • Karma: 0
Thanks! It was super easy!
The default banner in the example is banner-.png which is again working.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Adding new pstpl template file. 1 Jahr 4 Monate her #96938

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4266
  • Dank erhalten: 803
  • Karma: 368
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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
  • 2
Moderatoren: ITEd
Ladezeit der Seite: 0.134 Sekunden
Donation Image