kennethscott / renderpages Goto Github PK
View Code? Open in Web Editor NEWRenderPages plugin for ScrewTurn wiki
License: GNU General Public License v3.0
RenderPages plugin for ScrewTurn wiki
License: GNU General Public License v3.0
RenderPages Plugin for ScrewTurn Wiki ------------------------------------- Facilitates the creation of a single html page presentable for printing based on input parameters to specify Categories to INCLUDE *or* Pages to EXCLUDE. * CSS is used for formatting and can be viewed/modified via the Plugin/Provider's Configuration Data in the Admin section. * The generated markup is ready for consumption by Prince XML (http://www.princexml.com) for truly book-worthy printing capabilities including page numbers properly referenced in the table of contents and at the bottom of pages (all configurable via CSS). --Tag Description-- {RenderPages X=NAME:NAME:etc} Where X= 'P' - Indicates Page mode (can actually be any word that starts with p/P) 'C' - Indicates Category mode (can actually be any word that starts with c/C) Where NAME= Category Name to INCLUDE *Use #ALL# to include all categories *OR* Page Name to EXCLUDE --Example Tags-- {RenderPages c=My First Category To Print:My Second Category To Print} - will print ONLY the Categories specified {RenderPages c=#ALL#} - print all categories {RenderPages p=Sandbox:MainPage} - will print ALL Pages EXCEPT those specified Notes 1) Embedded {TOC}'s and the related section Edit links are removed. 2) The created Table of Contents listing has quick links to jump to the article text. 3) The actual article titles have the original wiki page url for links. 4) Under Category Mode - the Table of Contents will be grouped by Category if more than 1 Category is specified. 5) "Should" support multiple RenderPages tags on a single page (but I havent tested) Usage Example: 1) Create a new wiki page 2) Add whatever text you would like to appear on the cover of the document. (Remember the Page Title will be in H1 text at the top) 3) Add your RenderPages tag and Save. *For a truly printable PDF, download and install Prince XML from http://www.princexml.com. One installed, navigate to Prince's command-line engine in the installation folder: C:\Program Files\Prince\Engine\bin\prince.exe Run prince.exe with the following parameters: prince.exe --javascript --input=html --baseurl=http://www.mywikisite.com http://www.mywikisite.com/MyRenderPagesPage.ashx -o output.pdf The output.pdf file will be generated complete with a real table of contents and page numbers.
I have uploaded the new version and the tables of contents are still trying to be displayed. Each TOC has this at the top: %%%%TocTitlePlaceHolder%%%% and then each section has this to the right: %%%%EditSectionPlaceHolder%%%% which links to the page section to be edited.
The links in the TOC do not work.
for example i have two pages, first page have a link to second page (it's made by wiki markup: [second-page|my second page])
when i create a rendered page, where i can see my both first and second pages, link to second page still links to my wiki URL,
but i expect another behavior: link should be converted to innner link to my second page section in rendered page
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.