Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hi All,

I am currently adding a few features to a website whilst football (soccer) is on hiatus - podcasts, streaming etc.
One thing i would like to add is paging through the previous and upcoming fixtures on the same page, both use the same template. The way i've got it at the moment when you change one it changes both the previous fixture and next - see attached screenshots.

Code is below, assume it's something very simple or maybe not possible.
Code: Select all
<div class="previous-fixtures">
  <h2>Previous Fixtures</h2>
  <cms:pages masterpage="fixtures.php" orderby="kickoff" order="desc" custom_field="kickoff < cms:show today />"
                               limit="1" paginate="1">
    <div class="fixture-date"><h3><cms:date kickoff format="jS F, Y" /></h3></div>
  </cms:pages>
</div>
<div class="upcoming-fixtures">
  <h2>Upcoming Fixtures</h2>
  <cms:pages masterpage="fixtures.php" order="kickoff" order="asc" custom_field="kickoff > <cms:show today />"
                show_future_entries="1" limit="1" paginate="1">
    <div class="fixture-date"><h3><cms:date kickoff format="jS F, Y" /></h3></div>

    <div class="pagination">
   <cms:if k_paginated_bottom>
     <cms:if k_paginate_link_prev>
      <a class="previous" href="<cms:show k_paginate_link_prev />">Previous</a>
     </cms:if>
     <cms:if k_paginate_link_next>
      <a class="next" href="<cms:show k_paginate_link_next />">Next</a>
     </cms:if>
   </cms:if>
    </div>
  </cms:pages>
</div>


Hopefully the screenshot show what i mean. If it's not possible, it's not possible but think it would be a nice feature.

Any help greatly appreciated.

Ian

Attachments

Please see viewtopic.php?f=2&t=8411&p=15625

Hope it helps.
Hi KK,

Thanks for the quick reply. That's worked, thank you.
Did search the forums but no join.

Ian
3 posts Page 1 of 1
cron