Check out the LimeSurvey source code on GitHub!

Editing the Public Statistics page

More
5 years 5 months ago #65144 by Mike1985
Hi,

If you don't know what I mean from the public statistics page, please see attached for an image of it..

I'm trying to make a few changes to it but not really understanding how it's put together. For exacmple the code for part of it is:
<body class="default">
<table class="outerframe">
	<tr>
		<td>
<table class="survey-list-table">
    <tr>
		<td class="site-name">
			<h1>LimeSurvey</h1>
		</td>
    </tr>
	<tr>
		<td class="survey-list-heading">
			The following surveys are available:
         </td>
    </tr>
	<tr>
		<td class="survey-list">
        	<ul><li><a href='http://bravo.dasa.r.mil.uk/limeSurvey190/index.php?sid=64772'  class='surveytitle'>An example electronic survey</a>
</li>

But in the index.php the class "outerframe" is not there. In fact I don't think it's in any of the files!

Can anyone explain how to make changes?

Mike
Attachments:

Please Log in to join the conversation.

More
5 years 5 months ago #65196 by tpartner
That page is generated by the .pstpl files in the template. In particular, surveylist.pstpl.

See "The template editor in documentation - docs.limesurvey.org/The+template+editor&...tions+for+LimeSurvey

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.

More
5 years 5 months ago #65205 by Mike1985
Indeed, surveylist.pstpl does hold all the HTML I'm looking for.

However, because there are several template folders, there are also several surveylist.pstpl files (one in each, obviously). So how do you know which one it's using? I should point out to people reading this that the Default template: option in Global Settings dictates what file is used from what folder - mine is currently 'default' and probably so will yours be..

I hope this maybe helps someone someday :)

Please Log in to join the conversation.

More
5 years 5 months ago - 5 years 5 months ago #65256 by tpartner

However, because there are several template folders, there are also several surveylist.pstpl files (one in each, obviously). So how do you know which one it's using?

As you say, the template used for the "List Survey" page is dictated by your choice in Global settings. So if you choose the "default" template (which is, well, the default setting) you need only modify templates/default/surveylist.pstpl. Otherwise modify surveylist.pstpl in the appropriate directory.


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last Edit: 5 years 5 months ago by tpartner.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form