Hi Guys,
I am new to processwire and am trying to create a job portal for my website but im stuck..
I have a page where the portal superuser can see the jobs posted and it has a button that shows the number of applications (children) of each job. Ideally i want that when that show
button is clicked, it takes me to a page where i can view all the applications for that job specifically. I have a template created for that page but its just a matter of getting it to only display the relevant applications/children. any guidance would be appreciated.
This is the code i have to display the jobs in a list by their template
<?php foreach($jobs as $job){ ?>
<!-- Item #1 -->
<tr>
<td class="title"><a href="<?php echo $job->get('url');?>"><?php echo $job->get('title');?></a></td>
<td>January 30, 2020</td>
<td>January 30, 2020</td>
<?php $qty = $job->numChildren(true);?>
<td class="centered"><a href="#" class="button">Show (<?php echo $qty;?>)</a></td>
<td class="action">
<a href=""><i class="fa fa-pencil"></i> Edit</a>
<a href="#" class="delete"><i class="fa fa-remove"></i> Delete</a>
</td>
</tr>
<?php }?>