I Integrated a Book reader tool Monoscle written in javascript to get the node.tpl content in the book reader format. I tested it on my php document and it was working great, i am able to get the content from the database in the monoscle tool.
However, im unable to do the same in Drupal i.e., i want the content of node.tpl in the TOOL!
I followed these steps to itegrate the tool.
- I added JavaScripts and css in Bartic.info file under themes
- Initiated some JavaScript in node.tpl [Because its not initiating/working when placed in Bartic.info]
-
Placed the rendered content inside the div in node.tpl, which is initiated by JavaScript
<div id="rabbit"><?php print render($content); ?></div>Now the thing is am getting the Monoscle framework but not the content – neither from $content nor any paragraph.
I have gone through book flipping tool
Monoscleand Also implemented this tool successfully on drupal system..1] copy all files css and javascripts in seperate directory
2] Now Initilize some javascript path on you
theme.infoand as you mention itsbartik.infofile and these paths should be in order3] First create a directory in scripts of
bartiktheme directory withbookwhere you can place all file onmonosclefile into seperate.. and even for CSS file.4] below is the order
And this
scripts[] = scripts/book/rabbit_start.jsis custom made script file where it contains the monoscle codeAnd also with
stylesheets[all][] = css/book/styles/rabbit_css.cssWe need to add
#rabbitinfront of every selector style inrabbit_css.cssand below is the css code5] Select which content type need to work with for example, you have
articlesas content type… then copy anode.tpl.phpand paste it & rename withnode--articles.tpl.php6] Open
node--articles.tpl.phpand search for<?php print render($content); ?>.. this code display the content of article type.7] Now edit that code… with your desired fileds in content type
or
8] Save all file and go
Configuration->Performance->Clear cache9] Now open your desired article and it will display in
monosclebook reader format..