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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user