[FM Discuss] setting up booki publisher for civicrm
adam hyde
adam at flossmanuals.net
Thu Oct 27 09:51:00 PDT 2011
actually wget is good for epub and pdf but now i think of it, not good
for templated html...i need to write up how to use it as you are the
first but good timing as maybe sahana etc want to use it too. , so :
wgets for pdf and epub are:
http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=web";
http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=epub";
for getting templated html you can look at this file in bookipublisher:
https://github.com/esetera/BookiPublisher/blob/master/plugins/getbookgears/worker.php
specifcally my_getbook_function - look at this and if you have the
motivation, make this a standalone php script (just this function) and
use this then commit it to bookipublisher in the scripts dir so others
could use it
§url in the code for civi it would be:
"http://objavi.booki.cc?book=civicrm&server=booki.flossmanuals.net&mode=templated_html",
to use your own template you must append :
&html_template=$template
where $template is the url of a template file
template file must be file with following in it:
<content-goes-here />
<menu-goes-here/>
you can omit the template parameter when testing and you get the default
adam
On 27/10/11 18:30, Michael McAndrew wrote:
> hey there,
>
> cheers - is 'wget on a cron' documented somewhere?
>
> i'm on irc at the mo if that is easier
>
> On 27 October 2011 12:29, adam hyde <adam at flossmanuals.net
> <mailto:adam at flossmanuals.net>> wrote:
>
> actually...i would just use wget on a cron for one book...
>
> for bookipublisher you need php 5.3 and gearman the php que mananger...
>
> adam
>
>
> On 27/10/11 17:11, Michael McAndrew wrote:
>
> Hi there,
>
> Trying to get the civicrm book on book.civicrm.org
> <http://book.civicrm.org>
> <http://book.civicrm.org> nicely formatted with our css etc.
>
>
> I'm presuming bookipublisher is the tool to do this and I'm
> trying to
> install it. Happy to write INSTALL in the git repo. Not sure
> where to
> start :)
>
> I looked in config.inc.php. looks pretty reasonable.
>
> I ran db_init.sh and db_import.sh and both said done, though i
> noticed
> that booki.sqlite is zero bytes.
>
> Not sure what to do now?
>
> Michael
>
> --
> Michael McAndrew
>
> tel: 020 7183 5828
> mob: 07817 802299
>
> Third Sector Design Ltd.
> http://thirdsectordesign.org
>
>
>
> _________________________________________________
> Discuss mailing list
> Discuss at lists.flossmanuals.net
> <mailto:Discuss at lists.flossmanuals.net>
> http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net
> <http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>
> _________________________________________________
> Discuss mailing list
> Discuss at lists.flossmanuals.net <mailto:Discuss at lists.flossmanuals.net>
> http://lists.flossmanuals.net/__listinfo.cgi/discuss-__flossmanuals.net
> <http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net>
>
>
>
>
> --
> Michael McAndrew
>
> tel: 020 7183 5828
> mob: 07817 802299
>
> Third Sector Design Ltd.
> http://thirdsectordesign.org
>
>
>
> _______________________________________________
> Discuss mailing list
> Discuss at lists.flossmanuals.net
> http://lists.flossmanuals.net/listinfo.cgi/discuss-flossmanuals.net
More information about the Discuss
mailing list