I have two tables, two models and two repositories.
- Sections
- Faqs
Faqs belong in sections (one section has many faqs). This relationship is done by storing the section uid in the faq.
In my templates i'm doing:
<f:for each="{section.faqs}" as="faq">
<h3 class="question"><a href="#"><f:format.html>{faq.question}</f:format.html></a></h3>
</f:for>
Which displays the faqs in that section.
This works as expected on the front end as a normal user.
However, when i preview the page in the DRAFT workspace. Any draft faq questions are not displayed. I can only see faqs that are in the live workspace. I can however, see sections from the draft workspace.
Something is wrong in the relationship between faqs and sections.
How do i display the faqs in draft workspace sections?