[ckan-dev] Wordpress and CKAN
Stéphane Guidoin
stephane at opennorth.ca
Sun Feb 23 22:48:04 UTC 2014
Hello,
For the City of Montréal, we used Wordpress along CKAN. The strategy was
almost the same as what Stefan explained (Note that the wordpresser
extension is more or less deprecated... it has not been transferred to the
new CKAN Repo https://github.com/ckan/)
The way we did it is:
- Apache is serving CKAN and Wordpress "independently"
- Nginx is used a reverse server + redirection (all the CKAN url /groups/*,
/packages/*, etc) are directed to CKAN, the remaining to Wordpress.
Everything is on the same subdomain, there is not dedicated subdomain for
one of the tool
- Wordpress also serve the root (/) of the domain and we use CKAN API calls
to integrate some CKAN stuff on the homepage (like the "hot" packages)
- The city already had a theme for Wordpress (who was previously used to
host the data), so a designer worked to integrate the existing design to
work with CKAN. It's probably the most time intensive task although it is
not tremendous (few days)
There's a guide done by the data.gov.uk team to put CKAN along drupal. The
same principal applies with drupal (except that with Drupal, it is possible
to integrate drupal comment module in the CKAN pages which does not seem to
be possible with Wordpress)
https://docs.google.com/document/d/1rMRxuwVh7rK-dDRZukspC4y2HlXynF4RGS0mj4OjhVo/edit
Stéphane
On Sun, Feb 23, 2014 at 5:00 PM, Stefan Oderbolz <stefan.oderbolz at liip.ch>wrote:
> Hi,
>
> for opendata.admin.ch[1] we basically did the same as Reinier by using
> the same templates/css for both parts, but we used SymfonyCMF [2]. But
> instead of having two separate domains we used the mod_proxy of Apache [3],
> to redirect the CKAN-specific requests.
>
> So on our server there are 2 webservers running, the one for SymfonyCMF on
> port 80, and the one for CKAN on port 8080.
> Using mod_proxy we simply forward the requests to /dataset or
> /organization to the internally running webserver on port 8080.
>
> This makes it transparent for the user and he doesn't even recognize that
> he changes back and forth between the two running servers.
>
> - Stefan
>
> [1] http://opendata.admin.ch
> [2] http://cmf.symfony.com/
> [3] http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
>
>
> On Sat, Feb 22, 2014 at 1:35 PM, Reinier Battenberg <
> reinier.battenberg at mountbatten.net> wrote:
>
>> Hi,
>>
>>
>>
>> We just launched www.data.ug and what we did (with Drupal) was to use a
>> Drupal theme based on bootstrap. Then in CKAN, we created a theme module
>> that uses the same bootstrap.css as Drupal. The header and the footer we
>> just copied from the Drupal HTML to the CKAN theme.
>>
>>
>>
>> That gave us a 80/20 score of CKAN looking the same as Drupal.
>>
>>
>>
>> Lastly, we did the same as data.gov and run Drupal on the www.data.ugsite and CKAN on a
>> catalog.data.ug site
>>
>>
>>
>> (we also added geonode.org to the mix and did the same thing there.)
>>
>>
>>
>> Yes, it still needs work, yes it could be done smarter, but we did it in
>> a week, without any previous django knowledge.
>>
>>
>>
>> While learning we also realized we can integrate this more tighter and
>> generic, that will be for a later day.
>>
>>
>>
>> If you want to run everything on 1 domain, than you should use the apache
>> proxy module to have some subfolders handled by different applications.
>> That is how data.gov.uk integrates drupal & ckan.
>>
>>
>>
>> rgds,
>>
>>
>>
>> Reinier
>>
>>
>>
>>
>>
>> On Friday 21 February 2014 15:01:08 James Bell wrote:
>>
>> Hi
>>
>>
>> I am looking to add a Wordpress install that I will use alongside my CKAN
>> install, at domain.com/blog.
>>
>>
>> I've heard that other people have done this but I can find any docs on
>> how to do this and I am very new to Ubuntu! Any help would be appreciated.
>>
>>
>> Thanks,
>>
>> ...
>>
>>
>> This year I am running the London and Yorkshire marathons.
>>
>>
>> <http://www.justgiving.com/jamesryanbell>
>>
>>
>> To sponsor me for these and various others runs throughout this year and
>> last please go visit: http://justgiving.com/jamesryanbell
>>
>>
>> All money raised will go to Diabetes UK
>>
>>
>> Thanks
>>
>>
>> :-)
>>
>>
>>
>> --
>>
>> rgds,
>>
>>
>>
>> Reinier Battenberg
>>
>> Director
>>
>> Mountbatten Ltd.
>>
>> www.mountbatten.net
>>
>> tel: +256 758 801749
>>
>> twitter: @batje
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
>
> --
> Liip AG // Feldstrasse 133 // CH-8004 Zurich
> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140223/e323566d/attachment-0003.html>
More information about the ckan-dev
mailing list