List chapters

(This is an advanced guide, intended for professionals)
Formula:
{listchapters;pid=PID;exid=id1,id2,..,idn;specialchar= - ;itemi=}
This is the format, the software will automatically separate it into a list of chapters. Chapter names can be shortened if the name contains 'specialchar' (if this specialchar is in the chapter name, the part to the right of this character will be hidden).

Explain:

A.
There are 4 parameters declared. The first required parameter is 'listchapters;' and the last parameter is "itemi=". And the remaining 2 parameters are in the middle starting with “pid” and “exid” (understand: Displays a list of child items of PID, except id1,id2,..,idn). The display method is defined in the itemi parameter.

B.
If there is a chapter following two conditions: That chapter has no content and that chapter has subchapters inside. Then, default parameters are assigned to the content of that chapter as follows: {listchapters;pid=;exid=;specialchar= - ;itemi=[div class='col-xs-12 col-sm-6'][a href=CHAPTER-URL-i class='btn btn-default btn- block btn-xs']CHAPTE-NAME-i[/a][/div]} By default "pid" and "exid" parameter empty, (retrieve all subchapters of the current chapter);
"itemi" has 4 keywords: “[~<”,“]~>” ,“CHAPTER-URL-i” and “CHAPTE-NAME-i” This is the basic element of the link pattern.

C.
Thus, by default, if a chapter's content is left blank, the software will automatically render subcategories for that chapter. Editor no need to do anything else. If the editor wants to customize as required, he or she can change the above parameters by inserting a code similar to the above formula.

D. More information about customization in "itemi"
Default is:
"[div class='col-xs-12 col-sm-6'][a href=CHAPTER-URL-i class='btn btn-default btn-block btn-xs']CHAPTE-NAME-i[/a ][/div]"
=>
<div class='col-xs-12 col-sm-6'><a href=CHAPTER-URL-i class='btn btn-default btn-block btn-xs'>CHAPTE-NAME-i</a></div>

- <div class='col-xs-12 col-sm-6'> This follows the Bootstrap standard to specify that if viewed on a phone, each link is 1 line and on larger screen devices, 2 links The results are displayed on 1 line. The editor can change these parameters.
- <a class='btn btn-default btn-block btn-xs'>: also follows the Bootstrap standard, understood to display the link as a button, style: default, 100% wide; small size.
A simple way to write the entry is:
itemi=[a href=CHAPTER-URL-i]CHAPTER-NAME-i[/a]

Result: 1 line per chapter, display type: default text link.
In case the itememi line is declared missing CHAPTE-NAME-i or missing CHAPTER-URL-i, the default itememi will be used:
$itemi="[div class='col-xs-12 col-sm-6'][a href=CHAPTER-URL-i class='']CHAPTE-NAME-i[/a][/div]"

ALL SUPPORT

  • First time creating a book with HTMB
  • Layout & CSS for books
  • Menu type (How chapters are displayed)
  • Create "multiple content"
  • List the chapters inside
  • Embed the code"((..))" and readers interact with the book page.
  • Sample HTML data for sutra book
  • Contact or support
  • Privacy policy
  • HTMB is free, is free stuff good?