Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Token Page Custom Text

  • teracomp
  • teracomp's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 1 week ago #182980 by teracomp
Token Page Custom Text was created by teracomp
I've just read through all the topics with "token page", but I don't see where to customize the token entry page.

If the user has a link to a closed survey, one that requires a token, I want them to visit a help page I have setup on my website or email me for assistance.

Is this in the theme editor? I looked every place I could think of, but could not find a reference to editing this page (attached).

Thanks

Dave Phillips
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 week ago #182986 by DenisChenu
Replied by DenisChenu on topic Token Page Custom Text
Yes, seems there are a lack of this file in editor.

Else it's here : github.com/LimeSurvey/LimeSurvey/blob/ma...omponents/token.twig

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.
The topic has been locked.
  • teracomp
  • teracomp's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 1 week ago #183005 by teracomp
Replied by teracomp on topic Token Page Custom Text
Denis, Thanks for your response. I found the twig file, but I don't know how to add it to the manifest for my theme.

I created a theme based on bootswatch (not Vanilla), so token.twig is not in the config file.

I edited token.twig and added it to my theme's directory under /views/subviews/logincomponents as it appears in Vanilla.

My first attempt was to add the node at the bottom of config.xml using the <engine> node, but that seems to indicate I need to load everything.

The next attempt was adding it as just a file in ./files/token.twig, but again, how do I load this twig in the editor?

The screenshot attached shows my failed attempt to add this to the theme.

I can edit this outside of the interface as long as it is used by the theme.

Please let me know how to add token.twig to my custom theme.

Thanks

Dave Phillips
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 week ago #183016 by DenisChenu
Replied by DenisChenu on topic Token Page Custom Text
Updating via FTP must work (in my opinion).

But since we don't have a screen to show it : i think you must report an issue.

Currently : you can try to add it in another screen : gitlab.com/SondagesPro/SurveyThemes/skel...ster/config.xml#L220

welcome or load or register ?

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.
The topic has been locked.
  • teracomp
  • teracomp's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 1 week ago #183037 by teracomp
Replied by teracomp on topic Token Page Custom Text
I was able to get the token.twig added to my custom theme by adding it to the config.xml of the parent theme (bootswatch).

All I needed to do was add these two lines to the <welcome> node in the config file:

<file type="view" role="subview">./subviews/logincomponents/captcha.twig</file>
<file type="view" role="subview">./subviews/logincomponents/token.twig</file>

And, of course, I ftp'd the /logincomponents folder to the bootswatch theme subviews folder.

Dave Phillips
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose