README.md 1.13 KB
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Customized Theme of CKAN Data Catalog of HFT Stuttgart
The extension and files for the customization are structured as follows in the **`ckan`** source code's parent directory:
- ckanext-theme_hft
  - ckanext
    - theme_hft
      - assets
        - theme.css
        - webassets.yml
      - public
        - (pictures).jpg/png
      - templates
        - home
          - index.html
          - snippets
            - promoted.html
        - base.html
        - header.html
        - footer.html
      - plugin.py
  - setup.py
Rosanny Sihombing's avatar
Rosanny Sihombing committed
21

Rosanny Sihombing's avatar
Rosanny Sihombing committed
22
23
24
25
26
27
28
29
30
31
32
### Steps to implement the customized theme
1. Run the following command to create a new extension and place its directory in the **`ckan`** source code's parent directory:
   > ckan generate extension
   - New extension name: _`ckanext-theme_hft`_
1. Put the files in this repo to the their respective directories.
1. Go to **`ckanext-theme_hft`** directory and run the following command:
   > python setup.py develop
1. Add the new plugin to the ckan.plugins setting in `/etc/ckan/default/ckan.ini` file:
   > ckan.plugins = stats text_view recline_view theme_hft
1. Start CKAN
   > ckan -c /etc/ckan/default/ckan.ini run