Re: Adjust Templates/Themes

Clemens Gruber <[email protected]> Tue, 10 Oct 2006 17:37:57 +0200
Newsgroups gmane.comp.apache.mod-survey.general
Organization virtUOS / Uni Osnabrueck
Message-ID <[email protected]>
Hi Joel,

thanks for your help. I now use
{¤filename¤}

so I don't have to escape HTML stuff.

Clemens



Syntax Reference, p. 61

> 8.1. Including external files
> External files may be included into the survey at two different stages 
> during the survey’ life cycle.
> The first is before parse. This causes the contents of the linked file 
> to be parsed as if it was a part of
> the survey code. The second is after parse, in which case the contents 
> will simply be pasted
> verbatim into the visual output.
> {@filename@} (Include "filename" before parse)
> {¤filename¤} (Include "filename" after parse)
> The before parse link can be inserted anywhere in the survey file. The 
> after parse link can only be
> inserted in visual output, such as in a CUSTOM block or in a CAPTION.




Joel Palmius wrote:

> 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
>

Skickat av Clemens Gruber <[email protected]>
till survey-discussion