limeMpdf - full page background image - fore each survey

More
3 months 2 weeks ago - 3 months 2 weeks ago #201090 by sicoda_limesurvey
How can I set a full screen background image individually for each survey? I found the style-custom.tiwg

@page {
background-image: url(' www.123xxx.com/upload/surveys/ 12345/images/pdfbackground.jpg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
height:100%;
}

How can I dynamically update the survey number in the CSS? I didn't find a variable at this point.

Thx Oliver
Last edit: 3 months 2 weeks ago by sicoda_limesurvey.

Please Log in to join the conversation.

LimeSurvey Partners
More
3 months 2 weeks ago #201101 by Joffm
Variable for
SurveyID: {SID}
GroupID: {GID}
QuestionID: {QID}
and many more.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
3 months 2 weeks ago - 3 months 2 weeks ago #201115 by sicoda_limesurvey
Hi, your idea gave me the right direction. I couldn't get the variable you qouted to work in the twig files but I got it wokring with {{aSurveyInfo.sid}}
@page {
background-image: url('https://lsomain.com/limesurvey/upload/surveys/{{aSurveyInfo.sid}}/images/background_pdf.png');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
height:100%;
}


thx Oliver
Last edit: 3 months 2 weeks ago by sicoda_limesurvey.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
3 months 2 weeks ago #201239 by DenisChenu
And it work with limeMpdf ?

Great to know

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now