Welcome, Guest
Username: Password: Remember me

TOPIC: Keywords within a template file

Keywords within a template file 2 years 9 months ago #73687

  • IoSmith
  • IoSmith's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 28
  • Karma: 0
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.
The administrator has disabled public write access.

Re: Keywords within a template file 2 years 9 months ago #73692

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1151
  • Thank you received: 274
  • Karma: 79
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

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 2 years 9 months ago by Ben_V.
The administrator has disabled public write access.

Aw: Keywords within a template file 2 years 9 months ago #73699

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • Karma: 17
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
The administrator has disabled public write access.

Re: Keywords within a template file 2 years 9 months ago #73705

  • IoSmith
  • IoSmith's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 28
  • Karma: 0
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.
The administrator has disabled public write access.

Aw: Keywords within a template file 2 years 9 months ago #73736

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • Karma: 17
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: 2 years 9 months ago by Steve.
The administrator has disabled public write access.
The following user(s) said Thank You: Ben_V, IoSmith

Re: Aw: Keywords within a template file 2 years 9 months ago #73743

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.179 seconds
Donation Image