edit-task
Home
Up
Delete
Task Name:
Task Description:
BUILD-TOC, orig date 03-21
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">FEATURE - buildTOC</h1> <h2>[what]</h2> <ol> <li>] automatically generate a TOC page for your books</li> <ol> <li>]</li> </ol></ol> <h2>[why]</h2> <ol> <li>] a TOC is nice to have,</li> <li>] will link to all articles in the book,</li> <li>] all chapters in the book</li> <li>] will be categorized ( book chapter)</li> <li>]</li> </ol> <h2>[where]</h2> <ol> <li>] view/books</li> </ol> <h2>[when]</h2> <ol> <li>] 2014</li> </ol> <h2>[example]</h2> <ol> <li>]</li> </ol> <h2>[how-to]</h2> <ol> <li><strong>] auto create 'contents'</strong></li> <ol> <li>] createTOC(book_id,[title])</li> <li>] getChaptersInBook</li> <li>] forEachChapter - list chapter, w/link, ?description?</li> <li>] getArticlesInChapter - foreach article in each chapter, list article title, link, ?description?</li> <li>] output = listTOC, assign to TOC page or ???</li> </ol></ol> <h2>[reference]</h2> <ol> <li>] TOC.cshtml</li> </ol><hr /> <h1 style="text-align: center;">developer implementation</h1> <h2>[.process]<span style="font-size: 10px;"> </span></h2> <ol> <li><strong>*] client side button</strong></li> <ol> <li>] on PAGE view/articles - toolbar</li> </ol> <li><strong>] calls server side script </strong></li> <ol> <li>] to generate the html for the page</li> </ol> <li><strong>] put the html in the existing TOC page OR </strong></li> <ol> <li>]</li> </ol> <li><strong>x] create new TOC page</strong></li> <ol> <li>]</li> </ol> <li><strong>x] var book ...</strong></li> <ol> <li>x] get book id from request ( OR ....)</li> <li>x] name for TOC title ( use TOC in navHeader L2)</li> <li>x] id passed to getChaptersInBook in outer loop</li> </ol> <li><strong>x] var chapters = Chapter.getChaptersIBook</strong></li> <ol> <li>x] list chapters </li> </ol> <li><strong>x] nested for loop in </strong></li> <ol> <li>x] get articles in each chapter</li> </ol> <li><strong>x] add link to each chapter</strong></li> <ol> <li>x] bold chapter name</li> </ol> <li><strong>x] add link to each article</strong></li> <ol> <li>]</li> </ol> <li><strong>] TOC button</strong></li> <ol> <li>] replace current TOC? Y || no </li> <li>]</li> </ol></ol> <h2>[.notes]</h2> <ol> <li>?] nested ol in</li> <ol> <li>]</li> </ol> <li><strong>x] var book ...</strong></li> <ol> <li>x] get book id from request ( OR ....)</li> <li>x] name for TOC title ( use TOC in navHeader L2)</li> </ol> <li>]</li> </ol> <p> </p> <p> </p> <div><hr /></div> <h2> </h2> <h1 style="text-align: center;">status</h1> <p> </p> <h2>[-previously-]</h2> <ol> <li>[2014-04-03] </li> </ol> <h2>[-current-]</h2> <ol> <li> <div> ]</div> </li> </ol> <h2>[-next-]</h2> <ol> <li> <div>]</div> </li> </ol>