Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
en:create:texts [11.03.2014 11:32] – janisaltherr | en:create:texts [21.12.2014 22:52] – admin |
---|
| |
* //Text elements//\\ Try to always use text elements for texts. The questionnaire will stay clean and slim, and you are able to use functions like multilingual surveys. | * //Text elements//\\ Try to always use text elements for texts. The questionnaire will stay clean and slim, and you are able to use functions like multilingual surveys. |
* [[:en:glossary#drag_drop|Dragging and dropping]] text elements into the questionnaire- | * [[:en:glossary#drag_drop|Dragging and dropping]] text elements into the questionnaire. |
* Implementing text elements using the php function ''[[functions-base#text|text()]]''. | * Implementing text elements using the php function ''[[:en:create:functions:text|text()]]''. |
* //HTML-Code directly in the questionnaire//\\ Use HTML-code only to insert short snippets of code (e.g. when placing questionnaire elements) or if you have to insert dynamically created content without using placeholders. | * //HTML-Code directly in the questionnaire//\\ Use HTML-code only to insert short snippets of code (e.g. when placing questionnaire elements) or if you have to insert dynamically created content without using placeholders. |
* Drag a //HTML-code//-element into the questionnaire and enter your HTML-code. | * Drag a //HTML-code//-element into the questionnaire and enter your HTML-code. |
* Insert HTML-code using the PHP-function ''[[functions-output#html|html()]]''. The following example shows HTML-code divided into several lines for better legibility. | * Insert HTML-code using the PHP-function ''[[:en:create:functions:html|html()]]''. The following example shows HTML-code divided into several lines for better legibility. |
| |
<code php> | <code php> |
| no line break | <nowiki>$$Text$$</nowiki> | <nowiki>No line break at the hyphen: $$e-mail-</nowiki>\\ <nowiki>address$$</nowiki> | No line break at the hyphen:\\ e-mail-address | | | no line break | <nowiki>$$Text$$</nowiki> | <nowiki>No line break at the hyphen: $$e-mail-</nowiki>\\ <nowiki>address$$</nowiki> | No line break at the hyphen:\\ e-mail-address | |
| |
If you want text parts to show in the questionnaire, but not as variable labels in your dataset, use double curly brackets (''{'' and ''}''). Texts marked like this also won't show up using the query [[::de:create:functions-base#value|value()]] in correspondence with the format code ''label''. | If you want text parts to show in the questionnaire, but not as variable labels in your dataset, use double curly brackets (''{'' and ''}''). Texts marked like this also won't show up using the query [[:en:create:functions:value|value()]] in correspondence with the format code ''label''. |
| |
^ Description ^ Format-Code ^ Example ^ Output in questionnaire ^ Output in dataset ^ | ^ Description ^ Format-Code ^ Example ^ Output in questionnaire ^ Output in dataset ^ |