Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-15-2010, 12:26 AM   #1
marcot
Member
marcot began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2010
Device: iPod Touch
Customize Calibre Navbars

My enthusiasm for Calibre is perhaps preventing me from concentrating sufficiently to extract from the Calibre manual or fora an answer to my question:

How can the HTML for the Calibre navbars (e.g., "Previous | Up one Level | Next") be customized?

I realize that I can use CSS to remove or style the navbar, but I would like to make more fundamental changes. I use the Calibre command line to fetch news from the Web and convert it to HTML using Recipe Input to OEB Output, so I do not have a static HTML source file to modify.

For instance, I would like to add navbars to the top and bottom of the level 1 TOC page that includes an "Up one Level" link to "../index.html" (a "master" index of the index files on the next lower level of the tree). Another idea would be to create a breadcrumb navigation bar that appears on every page throughout.

Would this functionality require creating a mod of the python plugin for generating HTML? If so, what is the file name of this plugin's source? If not, and the solution is much easier, please forgive my enthusiasm!

Any suggestions would be greatly appreciated.
marcot is offline   Reply With Quote
Old 05-15-2010, 12:49 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This would require modification of the source code. the relevant code is in calibre/web/feeds/*.py in particular look at templates.py and news.py
kovidgoyal is offline   Reply With Quote
Reply

Tags
customization, navbar

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Toolbar customize weedfreak Calibre 3 03-04-2012 02:39 AM
how to customize viewer for calibre tanyeun Calibre 9 05-28-2010 04:06 AM
Customize the 700? JeffElkins Sony Reader 5 12-17-2008 11:25 AM
How-To Customize the Reader Name and Theme Frog29 Sony Reader Dev Corner 1 08-08-2008 08:49 PM
Customize your MR frontpage (reminder) Alexander Turcic Announcements 0 01-22-2005 12:12 PM


All times are GMT -4. The time now is 06:10 PM.


MobileRead.com is a privately owned, operated and funded community.