Hi Reno,
Thank you for your help. I now have the submissions page showing a listing of all the entries. However, when I click on an entry, I get the following error:
Parse Error: syntax error, unexpected T_ENDFOREACH (line 8 of /home/norberts/public_html/index/site/templates/submissions.php)
This error message was shown because you are logged in as a Superuser. Error has been logged.
I used the following code in my submissions.php file:
$entries = $pages->get("/submissions/")->children();
<!-- if ($entries->category == "Mats") echo "Turtle!";?> -->
foreach ($entries as $entry) : ?>
<p><?=$entry->name_1;?></p>
<p><?=$entry->description_1;?></p>
<? endforeach; ?>
The commented line is just me testing the value of a checked box, but we can ignore that for now.
I'm a newbie at PHP, so I was a bit confused with the code. Shouldn't there be an opening <? or <?php in front of the foreach loop? I tried that and I just get the following outputted:
$entries = $pages->get("/submissions/")->children();
Also, I'm trying to show more fields on the current Submissions listing page. Currently, the only field being outputted is the Description field. In the screenshots attached, you can see the fields the form uses, and the available fields.
Thank you for your help!