Skip to content

Commit

Permalink
Change demo.featured_groups name and add docs (Fixes #584)
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelbabu authored and amercader committed Apr 17, 2013
1 parent b09a935 commit 641e403
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/home.py
Expand Up @@ -139,7 +139,7 @@ def db_to_form_schema(group_type=None):
global dirty_cached_group_stuff
if not dirty_cached_group_stuff:
groups_data = []
groups = config.get('demo.featured_groups', '').split()
groups = config.get('ckan.featured_groups', '').split()

for group_name in groups:
group = get_group(group_name)
Expand Down
11 changes: 11 additions & 0 deletions doc/configuration.rst
Expand Up @@ -214,6 +214,17 @@ Default value: ``html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom rss
Defines the resource formats which should be loaded directly in an `iframe`
tag when previewing them.

ckan.featured_groups
^^^^^^^^^^^^^^^^^^^^

Example::
ckan.featured_groups = group_one group_two

Default Value: (empty)

Defines a list of (upto 2) groups which are displayed on the home page along
with 2 datasets in these groups.

Authentication Settings
-----------------------

Expand Down

0 comments on commit 641e403

Please sign in to comment.