This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:functions:looptopage [30.05.2016 14:05] – [1st example] info_familienwissenschaften | en:create:functions:looptopage [31.05.2016 09:29] – [1st example] info_familienwissenschaften | ||
---|---|---|---|
Line 3: | Line 3: | ||
'' | '' | ||
- | The function '' | + | The function '' |
- | This function specifies how often the pages have been repeated. | + | This function specifies how often the pages have been repeated. |
**Important: | **Important: | ||
Line 17: | Line 17: | ||
===== 1st example ===== | ===== 1st example ===== | ||
- | You want to repeat page 5 to 8 of the survey 3 times. The page should show different questions each time. | + | You want to repeat page 5 to 8 of the survey 3 times with different questions each time. |
* change the ID of page 8 to " | * change the ID of page 8 to " | ||
Line 26: | Line 26: | ||
</ | </ | ||
- | Now you want to have question '' | + | Now you want to have question '' |
- | (the questions were made as section '' | + | (the questions were created in section '' |
On page 5 you place the PHP-Code shown in the picture. It produces an array which contains a list of the questions and makes them available for the following pages via '' | On page 5 you place the PHP-Code shown in the picture. It produces an array which contains a list of the questions and makes them available for the following pages via '' | ||
Line 52: | Line 52: | ||
</ | </ | ||
- | To show the next questions on page 6 you have to place the following PHP-code on the page. The command '' | + | To show the next questions on page 6 you have to place the following PHP-code on the page. The command '' |