task

FEATURE - buildTOC

[what]

  1. ] automatically generate a TOC page for your books
    1. ]

[why]

  1. ] a TOC is nice to have,
  2. ] will link to all articles in the book,
  3. ] all chapters in the book
  4. ] will be categorized ( book chapter)
  5. ]

[where]

  1. ] view/books

[when]

  1. ] 2014

[example]

  1. ]

[how-to]

  1. ] auto create 'contents'
    1. ] createTOC(book_id,[title])
    2. ] getChaptersInBook
    3. ] forEachChapter - list chapter, w/link, ?description?
    4. ] getArticlesInChapter - foreach article in each chapter, list article title, link, ?description?
    5. ] output = listTOC, assign to TOC page or ???

[reference]

  1. ] TOC.cshtml

developer implementation

[.process] 

  1. *] client side button
    1. ] on PAGE view/articles - toolbar
  2. ] calls server side script
    1. ] to generate the html for the page
  3. ] put the html in the existing TOC page OR
    1. ]
  4. x] create new TOC page
    1. ]
  5. x] var book ...
    1. x] get book id from request  ( OR ....)
    2. x] name for TOC title ( use TOC in navHeader L2)
    3. x] id passed  to getChaptersInBook in outer loop
  6. x] var chapters = Chapter.getChaptersIBook
    1. x] list chapters 
  7. x] nested for loop in
    1. x] get articles in each chapter
  8. x] add link to each chapter
    1. x] bold chapter name
  9. x] add link to each article
    1. ]
  10. ] TOC button
    1. ] replace current TOC? Y || no 
    2. ]

[.notes]

  1. ?] nested ol in
    1. ]
  2. x] var book ...
    1. x] get book id from request  ( OR ....)
    2. x] name for TOC title ( use TOC in navHeader L2)
  3. ]

 

 


 

status

 

[-previously-]

  1. [2014-04-03] 

[-current-]

  1.  ]

[-next-]

  1. ]
Details Photos Edit more

Details

ID: 3700

NAME: FEATURE-3700

DESCRIPTION: BUILD-TOC, orig date 03-21

START DATE TIME: 2014-04-03 11:50:20

EST DURATION: 01:00:00

END DATE TIME: 2014-04-03 12:50:20

STATUS: To-Do

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities