Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
en:create:functions:gettextelement [02.12.2014 14:33] – created alexander.ritteren:create:functions:gettextelement [29.08.2020 10:36] – [getTextElement()] sophia.schauer
Line 1: Line 1:
 ====== getTextElement() ====== ====== getTextElement() ======
  
-''string **getTextElement**(string //TextKennung//)''+''string **getTextElement**(string //textID//, [string //output format//])''
  
-Gibt den HTML-Code für den Textbausteins mit der Kennung //TextKennung// als String zurück.+Returns the HTML code for the text element with the ID //textID// as a string.
  
-  * //TextKennung//\\ Kennung des Textbausteins, dessen Inhalt zurückgegeben werden soll.+  * //textID//\\ ID of the text element whose content is to be returned.
  
-**Hinweis:** Falls der Textbaustein mit Titel und/oder Formatierung im Fragebogen ausgegeben wirdso ist auch dies im HTML-Code enthaltenNicht enthalten sind allerdings eine eventuelle Ausrichtung (links/mittig/rechts/Blocksatzsowie Abstand unter dem Textbaustein.+**Note:** If the text element is output in the questionnaire  with a title and/or formattingthis is also included in the HTML codeHowever, the potential alignment (left/centred/right/justifiedand the spacing below the text element are not included
  
-===== Beispiel 1 =====+===== Example 1 =====
  
-Im folgenden Beispiel wird einer von Textbausteinen ("desc1" oder "desc2"per Platzhalter in einen dritten Platzhalter ("description"eingebundenDer dritte Textbaustein muss dabei den Platzhalter ''%desc%'' enthalten.+In the following example, one of text elements ("desc1" or "desc2"is integrated into a third placeholder ("description"via placeholderThe third text element therefore must contain the placeholder ''%desc%''.
  
 <code php> <code php>
Line 23: Line 23:
 </code> </code>
  
-===== Beispiel 2 =====+===== Example 2 =====
  
-Im folgenden Beispiel wird jedes "a" und jedes "A" durch einen Unterstrich ersetzt und der Textbaustein anschließend angezeigt.+In the following example, each "a" and "A" is replaced with an underscore and the text element subsequently displayed.
  
 <code php> <code php>
en/create/functions/gettextelement.txt · Last modified: 26.09.2020 13:50 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki