Building a website with an academic bibliography, I'm using related pages to show if an article is reprinted in one of the author's full-length books or collections.
While k_total_records does give the right number, I can't seem to find a variable that (used inside the related pages loop) indicates the current count #. The cms:pages pagination variable k_current_page seems to output the same number for each of the records.
The point is checking where some bits of text are to be outputted in between the titles of each of the related pages, and a full stop at the end (not yet in the below code).
This article is reprinted in *book title* and in *book title*.
If there's an easier way to do this, please point me in that direction instead!
Edit:
On a related note, I was wondering if anyone knows about the existence of code or plugins designed specifically for outputting literature citations in different prescribed forms (Chicago style, etc.) from separate fields of database content. I imagine there must be more uses for that.
While k_total_records does give the right number, I can't seem to find a variable that (used inside the related pages loop) indicates the current count #. The cms:pages pagination variable k_current_page seems to output the same number for each of the records.
The point is checking where some bits of text are to be outputted in between the titles of each of the related pages, and a full stop at the end (not yet in the below code).
This article is reprinted in *book title* and in *book title*.
- Code: Select all
<!-- this article is included in one or more books -->
<span>Reprinted in</span>
<cms:related_pages 'contained_in_book' >
<a href="<cms:show k_page_link/>"> <em><cms:show k_page_title /></em></a>
<cms:if k_total_records gt k_current_page > and in</cms:if>
</cms:related_pages>
If there's an easier way to do this, please point me in that direction instead!
Edit:
On a related note, I was wondering if anyone knows about the existence of code or plugins designed specifically for outputting literature citations in different prescribed forms (Chicago style, etc.) from separate fields of database content. I imagine there must be more uses for that.