Welcome to the LimeSurvey Community Forum

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

How to create static Pages in LimeSurvey

  • ShivajiM
  • ShivajiM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 1 day ago #250674 by ShivajiM
I am using LS 6.2.7. How to create informative static Pages in LimeSurvey?  I want to create two Pages like 
1. Accessibility
2. About Us

For creating a Hyperlink of these two pages, I am going to put in " layout_global.twig" using Theme Editor, which will be available throughout the entire survey.  

The problem is that I didn't find any option to create a static page in LS.

Please suggest. Thank you very much for taking a look at this post.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 1 day ago #250677 by holch
Replied by holch on topic How to create static Pages in LimeSurvey
You will need to create these pages on your own. Limesurvey is not a CMS, but a survey tool. So if you want to have static pages, create them yourself with HTML/CSS.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 1 day ago - 7 months 1 day ago #250678 by tpartner
Replied by tpartner on topic How to create static Pages in LimeSurvey
There are no such things as static pages with static URLs within LimeSurvey.

My suggestion would be to load the accessibility content in a hidden text-display question in the first survey group and show it in a Bootstrap modal.

- getbootstrap.com/docs/5.0/components/modal/

In your TWIG file, add something like this, replacing "myQuestionCode" with the hidden text-display question code. It will insert the modal element and a button to open it.
 
 
Code:
<div style="padding: 15px;">
  <!-- Button trigger modal -->
  <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#accessibilityModal">
    Accessibility
  </button>
 
  <!-- Modal -->
  <div class="modal fade" id="accessibilityModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLabel">Accessibility</h5>
          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>
        <div class="modal-body">
          {{ processString('{myQuestionCode.question}') }}
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
        </div>
      </div>
    </div>
  </div>
</div>

 

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 months 1 day ago by tpartner.

Please Log in to join the conversation.

  • ShivajiM
  • ShivajiM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 1 day ago #250679 by ShivajiM
Replied by ShivajiM on topic How to create static Pages in LimeSurvey
@tpartner, thank you very much for your reply, Yes, I was looking for something like this and even a Modal window will work.

All fine. except  {{ processString('{myQuestionCode.question}') }}

This will replace the actual content from Survey.

Where I have to enter this in Survey ? I didn't understood this line "hidden text-display question in the first survey group".

Please elaborate this message of your please.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 1 day ago #250680 by tpartner
Replied by tpartner on topic How to create static Pages in LimeSurvey
In the first survey group, create a question of type Text display - manual.limesurvey.org/Question_type_-_Text_display/en

Place your accessibility info in that question.

Hide the question with the "Always hide this question" setting - manual.limesurvey.org/Question_type_-_Te...uestion_.28hidden.29

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ShivajiM

Please Log in to join the conversation.

  • ShivajiM
  • ShivajiM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 1 day ago #250681 by ShivajiM
Replied by ShivajiM on topic How to create static Pages in LimeSurvey
@tpartner Wonderful. That works. Thank you very much.

Please Log in to join the conversation.

  • ShivajiM
  • ShivajiM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 months 3 weeks ago - 6 months 3 weeks ago #250849 by ShivajiM
Replied by ShivajiM on topic How to create static Pages in LimeSurvey
Hello @tpartner, last time I get an extremely good reply and it sorted out all issues.

I have one more question left to be asked here.

For two Static Page, I have created two Hidden Textual Question type and it is working fine in the Modal window. You also told me to put that question in the first within that Group. It is dragged and Dropped in First Position even.
Whenever I run the Survey, all fine, except after the Welcome Screen, the Survey now Starts from question no.  3.    

As because the first two questions are hidden, actual first question count starts from 3 now.

Any suggestion, on how to make that two Hidden question so that it didn't get counted as a Question at all ?

 
Last edit: 6 months 3 weeks ago by ShivajiM. Reason: grammer

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 3 weeks ago #250853 by tpartner
Replied by tpartner on topic How to create static Pages in LimeSurvey
Disable the "Show Question Number and/or Code" setting in the survey presentation settings.

You can place your own question numbers in the question text.

(l never use question numbers)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • ShivajiM
  • ShivajiM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 months 3 weeks ago #250854 by ShivajiM
Replied by ShivajiM on topic How to create static Pages in LimeSurvey
What about if I move the First Two Hidden Question to Last ?

I did that just now and I think its fixed the issue.

Do you recommend this approach?

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 3 weeks ago #250856 by tpartner
Replied by tpartner on topic How to create static Pages in LimeSurvey
I recommend my suggestions.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: ShivajiM

Please Log in to join the conversation.

More
6 months 3 weeks ago #250901 by jelo
Replied by jelo on topic How to create static Pages in LimeSurvey

I recommend my suggestions.
 
Not many people do that these days
 

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose