Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Keyword for identification of groupnumber

Keyword for identification of groupnumber 4 years 10 months ago #72094

  • tammo
  • tammo's Avatar
  • Online
  • Premium Lime
  • Posts: 372
  • Thank you received: 63
  • Karma: 17
In a template I want to style each page (survey showing 1 group per page) individually. I would like to insert the following in the template:

<div class="group {GROUP_NUMBER}">

but it seems this is not the right keyword (it is not in the list, I just tried, analogous to {QUESTION_NUMBER}).

My question is: is there a keyword for the groupnumber? There are keywords for the groupname en group description ({GROUPNAME} and {GROUPDESCRIPTION})....

Thanks in advance,

Tammo

Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands
Last Edit: 4 years 10 months ago by tammo.
The administrator has disabled public write access.

Keyword for identification of groupnumber 4 years 10 months ago #72097

  • tammo
  • tammo's Avatar
  • Online
  • Premium Lime
  • Posts: 372
  • Thank you received: 63
  • Karma: 17
I more or less solved it with this workaround:

I gave all groups names like abcd_1, abcd_2 etc. since I do not use the group names in the survey itself.

After that I put in the template (startgroup.pstl):

<div class="group {GROUPNAME}">

But still, it would be nice to have either a {GROUP_NUMBER} available...

Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands
The administrator has disabled public write access.

Aw: Keyword for identification of groupnumber 4 years 10 months ago #72098

  • Steve01
  • Steve01's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 493
  • Thank you received: 47
  • Karma: 17
Hello,

I think there is a {GID} that inserts the ID of the group.
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
The administrator has disabled public write access.

Aw: Keyword for identification of groupnumber 4 years 10 months ago #72099

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6027
  • Thank you received: 373
  • Karma: 260
vierundzwanzig wrote:
Hello,

I think there is a {GID} that inserts the ID of the group.
Can you cnfirm this, Tammo?

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'"
The administrator has disabled public write access.

Aw: Keyword for identification of groupnumber 4 years 10 months ago #72105

  • tammo
  • tammo's Avatar
  • Online
  • Premium Lime
  • Posts: 372
  • Thank you received: 63
  • Karma: 17
I tried and put {GID} in the startgroup.pstl, like this:

<div class="group {GID}">

But the code generated in a survey is the same, {GID} is not replaced by a group ID, while {GROUPNAME} is.

Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands
The administrator has disabled public write access.

Aw: Keyword for identification of groupnumber 4 years 10 months ago #72108

  • tammo
  • tammo's Avatar
  • Online
  • Premium Lime
  • Posts: 372
  • Thank you received: 63
  • Karma: 17
I think it would help templating a survey if it was possible to have a class per page (for the moment I prefer some kind of group code for that): like:

<body class="some-kind-of-unique-code-here-possibly-groupID">

Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands
The administrator has disabled public write access.

Aw: Keyword for identification of groupnumber 4 years 10 months ago #72110

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6027
  • Thank you received: 373
  • Karma: 260
You can add this as a feature request at our feature tracker . Please describe your idea as detailed as possible and try to outline a suitable solution/implementation as well.

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'"
The administrator has disabled public write access.

Aw: Keyword for identification of groupnumber 4 years 10 months ago #72140

  • DenisChenu
  • DenisChenu's Avatar
  • Online
  • Moderator Lime
  • Posts: 9568
  • Thank you received: 1374
  • Karma: 390
Yep, maybe just a {GROUPID} replace by groupXXX, the we can have id="groupXXX" and remove the <div id="group" /> from start and endgroup.

I think it's good to have a group class like a question class: ideas.limesurvey.org/ideatorrent/idea/343/
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.
Time to create page: 0.351 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form