Re: Adjust Templates/Themes

Joel Palmius <[email protected]> Mon, 2 Oct 2006 12:38:27 +0200 (CEST)
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
BugAnt's suggestion is the way I do it when writing long surveys. I often 
include the <SECURITY> tag in the included header file too, so there's one 
place to edit that.

For example, test.survey

   <SURVEY TITLE="test">
     {@header.inc@}
     <TEXT NAME="test" CAPTION="test" />
   </SURVEY>

And in header.inc:

   <CUSTOM ESCAPED="no">
     <img src="headerlogo.jpg" />
   </CUSTOM>

   <SECURITY>
     <ANSWER LEVEL="open" />
     <DATA LEVEL="open" PASSWORD="test123" />
   </SECURITY>

If you are good at CSS, you could probably add a header through the 
stylesheet too. The whole survey is enclosed with

   <div id="mdsbody">
     ..
   </div>

Thus, adding a background-image or a border to that may be a way to add a 
header.

   // Joel

On Mon, 2 Oct 2006, Clemens Gruber wrote:

> bugant wrote:
>
>>  Clemens Gruber wrote:
>> 
>> >  How can I do this with mod_survey, is there a template file for a whole 
>> >  survey not only for single pages?
>> 
>>
>>  hmm... as I can see it, no. but you can write yours header and footer
>>  to separate files and then include them in every survey page using the
>>  {@ ... @} mechanism.
>
>
> Hi bugant,
>
> thanks for the fast help, this may be a workaround. So I have to update -- 
> if necessary -- the static content only once and editing the "normal" item 
> pages is more concise.
>
> Best regards!
> Clemens
> Skickat av Clemens Gruber <[email protected]>
> till survey-discussion
>
Skickat av Joel Palmius <[email protected]>
till survey-discussion