|05-15-2010, 12:26 AM||#1|
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.
|05-15-2010, 12:49 AM||#2|
Creator of calibre
Join Date: Oct 2006
Location: Mumbai, India
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
|Thread Tools||Search this Thread|
|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|