The defaults for unnumbered chapters don’t meet my needs. How do I change this behavior?
By default, Wikipublisher books recognise certain chapters as “unnumbered”:
This may not be the behaviour the author desires.
The $ChapterKindFmt array allows the administrator to change this behaviour, either on a per-group basis, or site-wide. Wikipublisher looks for the special chapter names Preface, Introduction, Acknowledgments, … and allocates a “kind” attribute to the corresponding chapter tag.
This default interpretation can be changed. Suppose an author wants the unnumbered chapter before the table of contents to be called Abstract and wants the Foreword to be unnumbered. Add the following to either the Group.php or config.php files:
$ChapterKindFmt['preface'] = 'Abstract'; $ChapterKindFmt['introduction'] = 'Foreword';
In another example, an author may want to print the Preface after the table of contents. Add the following to the Group.php or config.php files:
$ChapterKindFmt['preface'] = 'Abstract'; $ChapterKindFmt['introduction'] = 'Preface';
We have to redefine $ChapterKindFmt[‘preface’] even if we don’t want an opening chapter; otherwise, Wikipublisher will treat the preface as a preface and not as an introduction.
In another case, an author may want to treat the Introduction as a numbered chapter. Add the following to the Group.php or config.php files:
$ChapterKindFmt['introduction'] = 'Preface';
Of course, if there is a chapter called Preface, Wikipublisher will treat this as unnumbered.