Check out the LimeSurvey source code on GitHub!

Keywords within a template file

More
5 years 2 weeks ago #73687 by IoSmith
Hello limes! :)

i' m trying to edit a template but i cannot find the following keywords:
{FAX_TO}
{THANKS}
and some more...
I have found the most common ones, such as {SURVEYNAME}.

I have already looked into "common.php" and "index.php" files.

Please Log in to join the conversation.

More
5 years 2 weeks ago - 5 years 2 weeks ago #73692 by Ben_V
It's here:
docs.limesurvey.org/The+template+editor#Keywords
Some {KEYWORDS} are only working if used into specifics .psptl files

.psptl files related with those placeholders are in those following directories:
For original templates: yourdomain/templates/
For customized templates: yourdomain/upload/templates/

/!\ Don't touch LS main directory .php files for basic template edition
(BTW .php files are commonly updated during any LS actualization)

Ben

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last Edit: 5 years 2 weeks ago by Ben_V.

Please Log in to join the conversation.

More
5 years 2 weeks ago #73699 by Steve01
Hello,

which LimeSurvey version and build number do you use and what do you want to accomplish? If we know that we might be able to help you.

Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team

Please Log in to join the conversation.

More
5 years 2 weeks ago #73705 by IoSmith
Thank you both for your replies.
benitov, the specific keywords are not included in the link you provide (which by the way i used as a guide to edit my template).
vierundzwanzig, i use the latest stable one, which is Version 1.91+ Build 12170. I just want to edit and customize a template ("citronade") and i found these keywords in "printable survey page" screen, "print_survey.pstpl" standard file, lines 24 and 26.

Please Log in to join the conversation.

More
5 years 2 weeks ago - 5 years 2 weeks ago #73736 by Steve01
Hello,

I had a look at the LimeSurvey translation to see where this text is used in the source code. It seem to be in the file "limesurvey/admin/printablesurvey.php" around line 166
$survey_output['FAX_TO'] = $clang->gT("Please fax your completed survey to:")." $surveyfaxto";

If you have a survey in only one language it might be an idea to simply add the text to "print_survey.pstpl" rather than using a variable and edit it or the translation of the varuable to simply show some piece of text.

EDIT:
The list of keywords in some articles is outdated. However, there seems to be an approach to collect all keyword in the ExpressionManager Roadmap article:
docs.limesurvey.org/Expression+Manager+Roadmap

Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
Last Edit: 5 years 2 weeks ago by Steve01.
The following user(s) said Thank You: Ben_V, IoSmith

Please Log in to join the conversation.

More
5 years 2 weeks ago #73743 by Mazi

vierundzwanzig wrote: EDIT:
The list of keywords in some articles is outdated. However, there seems to be an approach to collect all keyword in the ExpressionManager Roadmap article:
docs.limesurvey.org/Expression+Manager+Roadmap

I also talked about that with Tom: www.limesurvey.org/en/forum/can-i-do-thi...template-files#73498

vierundzwanzig, can you think of a good way to present that information in a readable format at the wiki?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form