1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

{BOOK_CHAPTERS} shprtcode added.

Render All visible Chapters from a specific Book.
Uses "listChapter" template key. ie. $CHAPTER_TEMPLATE[---TEMPLATE --]['listChapters']
Example {BOOK_CHAPTERS: name=book-sef-url&template=xxxxx&limit=3}
This commit is contained in:
Cameron
2017-11-10 15:37:23 -08:00
parent 2a37288dc7
commit e165c90575
3 changed files with 89 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ class cpage_shortcodes extends e_shortcode
// Grab all book/chapter data.
function __construct()
{
parent::__construct();
$books = e107::getDb()->retrieve("SELECT * FROM #page_chapters ORDER BY chapter_id ASC" , true);