[ckan-dev] enabling the ckanext-disqus extension
Justin Lewis
jlewis at drcog.org
Thu Feb 27 16:17:56 UTC 2014
Excellent! Thank you! I'll try to let the extension developers know.
J
From: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] On Behalf Of James Bell
Sent: Wednesday, February 26, 2014 6:01 PM
To: CKAN Development Discussions
Subject: Re: [ckan-dev] enabling the ckanext-disqus extension
The docs are wrong or outdated, you need to use:
{{ h.disqus_comments() }}
instead of ${h.disqus_comments() }
....
This year I am running the London and Yorkshire marathons.
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
:-)
On Wednesday, 26 February 2014 at 22:00, Justin Lewis wrote:
Hi,
I have installed and configured the ckanext-disqus extension on CKAN 2.0 which allows the ability to add comments to pages. The install was simple enough but I'm having trouble understanding how to enable the comments in a template. I am not creating my own templates at this point. I simply want to enable comments as a starting point on the default CKAN interface.
The extension documentation (https://github.com/ckan/ckanext-disqus/) says I can simply add this:
${h.disqus_comments()}
to the template where I want it to appear. So I found the template that renders each dataset page:
1. /usr/lib/ckan/default/src/ckan/ckan/templates/package/read.html
but this does nothing but display the code as text at the bottom of each dataset page. If someone has any experience with this can you please provide some guidance on how to get started with this? I am new to CKAN, Jinja, and Pylons so please bare with me.
Thank You,
Justin Lewis | Software Developer | Administration and Finance
Direct 303-480-6750 | Fax 303-480-6790 | jlewis at drcog.org
<image001.gif><http://www.drcog.org/>
<image002.png><http://www.denverregionalequityatlas.org/>
Check out the new interactive Regional Equity Atlas<http://denverregionalequityatlas.org/>: Mapping
opportunity on a regional scale from a local perspective.
<image003.png><http://www.facebook.com/Denver.Regional.Council.of.Governments> <image004.png><https://twitter.com/DRCOGorg> <image005.png><http://www.linkedin.com/company/denver-regional-council-of-governments?trk=cp_followed_name_denver-regional-council-of-governments>
_______________________________________________
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/20140227/50674506/attachment-0003.html>
More information about the ckan-dev
mailing list