I have a (P&T) Matrix storing related entries from a channel where the entry_date for each entry is being used as a go-live date. Each row with its related content and more displays as its own page.
I need to somehow grab this date or create a similar functionality within the matrix, to either close the row before a certain date, or be able to create display parameters that only show rows marked by this date or before.
The only sticking point right now is paging - which pages into rows where the related content is not yet live, and this shows empty images and content. I need to skip these instances entirely.
PHP is an option.
Thanks in advance for any tips, references, or advice that might solve this! Again, it's all about row-to-row paging, though I suppose a solution that worked for more than just paging would also be awesome.
Many thanks.
EDIT!
`
{the_matrix limit="1" sort="asc" row_id="{segment_4}"}
<h3>{title} - <strong>Page {if page}{page}{if:else}{field_row_count}{/if}</strong></h3>
<div class="pagNav">
{if prev_row}{prev_row}<a class="btnPrev btn" href="{path="the/path"}/{segment_3}/{row_id}" title="Prev">Previous</a>{/prev_row}{if:else}<a class="btnPrev btn inactive" href="#" title="Prev">Previous</a>{/if}
{if next_row}{next_row}<a class="btnNext btn" href="{path="the/path"}/{segment_3}/{row_id}" title="Next">Next</a>{/next_row}{if:else}<a class="btnNext btn inactive" href="#" title="Next">Next</a>{/if}
</div>
<div class="navSearch">
<!-stuff->
</div>
</div>
<div class="contentBar">
<img src="{related}{field_content}{/related}" alt="{title} img" />
</div>
<div class="pagFooter">
<h3><strong>Page {if page}{page}{if:else}{field_row_count}{/if}</strong></h3>
<div class="pagNav">
{if prev_row}{prev_row}<a class="btnPrev btn" href="{path="the/path"}/{segment_3}/{row_id}" title="Prev">Previous</a>{/prev_row}{if:else}<a class="btnPrev btn inactive" href="#" title="Prev">Previous</a>{/if}
{if next_row}{next_row}<a class="btnNext btn" href="{path="the/path"}/{segment_3}/{row_id}" title="Next">Next</a>{/next_row}{if:else}<a class="btnNext btn inactive" href="#" title="Next">Next</a>{/if}
</div>
</div>
{/the_matrix}
`
So that's my Matrix code, abbreviated in obvious places. Hope it's helpful. I need to query this in such a way to prevent next_row and prev_row from pulling rows with related content that isn't live yet.
Thanks!