By JimK on
How do I get the results of this great php snippet to print?
The Book Block Snippet http://drupal.org/node/44648 can be used in a book page as embedded php- -to make a self-updating Table of Contents. Fabulous.
The only trouble is when you click 'print friendly' all that shows is the PHP snippet, not the table of contents generated on the regular page.
I just know that this has to be simple, PHP command phrasing. What do I do to make it compatible to the Book Module's print friendly settings?
You can see it at http://www.cpnhelp.org/?q=contents
Comments
It will print from 'print friendly' module correctly
In case anyone comes across this question, the snippet prints fine from using the Print Friendly module link, even though it does not from the Book Module 'print friendly' command. I don't know enough php to understand why, but it gives a work around, as I list it as the 'preferred' print friendly method for that page.
www.cpnhelp.org