Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Adding new pstpl template file.

Re: Adding new pstpl template file. 1 year 1 month ago #96934

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4066
  • Thank you received: 745
  • Karma: 341
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.
Last Edit: 1 year 1 month ago by tpartner.
The administrator has disabled public write access.

Re: Adding new pstpl template file. 1 year 1 month ago #96936

  • joss
  • joss's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
Thanks! It was super easy!
The default banner in the example is banner-.png which is again working.
The administrator has disabled public write access.

Re: Adding new pstpl template file. 1 year 1 month ago #96938

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4066
  • Thank you received: 745
  • Karma: 341
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.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.124 seconds
Donation Image