Welcome, Guest
Username: Password: Remember me

TOPIC: Keyword for identification of groupnumber

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

  • tammo
  • tammo's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 42
  • Thank you received: 3
  • Karma: 1
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

www.toolsforresearch.com
Last Edit: 2 years 10 months ago by tammo.
The administrator has disabled public write access.

Re: Keyword for identification of groupnumber 2 years 10 months ago #72097

  • tammo
  • tammo's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 42
  • Thank you received: 3
  • Karma: 1
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

www.toolsforresearch.com
The administrator has disabled public write access.

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

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • 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.

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

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

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

  • tammo
  • tammo's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 42
  • Thank you received: 3
  • Karma: 1
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

www.toolsforresearch.com
The administrator has disabled public write access.

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

  • tammo
  • tammo's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 42
  • Thank you received: 3
  • Karma: 1
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

www.toolsforresearch.com
The administrator has disabled public write access.

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

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5423
  • Thank you received: 307
  • Karma: 252
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)limesurvey.org'"
The administrator has disabled public write access.

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

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
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/
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.127 seconds
Donation Image