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 [31.05.2016 09:27] – [loopToPage()] info_familienwissenschaften | en:create:functions:looptopage [31.05.2016 09:31] – [2nd example] info_familienwissenschaften | ||
---|---|---|---|
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 '' |
Line 69: | Line 69: | ||
Earlier on page 3 you asked a question with 10 possible //free mentions// as answers ('' | Earlier on page 3 you asked a question with 10 possible //free mentions// as answers ('' | ||
- | You copy the section '' | + | You copied |