Config.json

The config.json is a json formatted file.

 

inc/modules/<extensionKey>/config.json

 

You have with extensions the ability to extend the kryn system and other extension - in a couple of cases you dont have the possibility to define this in the extension editor, so you need to write this in the config.json direct.

 

You can edit this file directly with a normal text editor like notepad, notepadd++ or eclipse etc.

 

Under the propert subsite you can find more information about the definition in the config.json.

Example config.json from publication extension
{
  "owner": "1",
  "version": "0.1.2",
  "desc": {
    "en": "Publication is a small news\/blog system, where you can manage and display news by categories.",
    "de": "Ein kleines News system, mit dem man News managent und ver\u00f6ffentlichen kann."
  },
  "title": {
    "en": "News and Blogs",
    "de": "News und Blogs"
  },
  "category": "1",
  "community": "1",
  "writableFiles": "inc\/template\/publication\/*",
  "admin": {
    "news": {
      "title": "News",
      "childs": {
        "list": {
          "title": "News Overview",
          "type": "list",
          "class": "publicationNewsList",
          "isLink": true,
          "defaultWidth": 600,
          "multi": true,
          "childs": {
            "add": {
              "title": "News add",
              "type": "add",
              "class": "publicationNewsAdd",
              "isLink": false,
              "multi": true,
              "childs": [
                
              ]
            },
            "edit": {
              "title": "News edit",
              "type": "edit",
              "class": "publicationNewsEdit",
              "isLink": false,
              "multi": true,
              "childs": [
                
              ]
            }
          }
        },
        "category": {
          "title": "Category",
          "type": "list",
          "class": "publicationNewsCatsList",
          "isLink": true,
          "multi": true,
          "childs": {
            "add": {
              "title": "Add news category",
              "type": "add",
              "class": "publicationNewsCatsAdd",
              "isLink": true,
              "multi": true,
              "childs": [
                
              ]
            },
            "edit": {
              "title": "Edit news category",
              "type": "edit",
              "class": "publicationNewsCatsEdit",
              "isLink": true,
              "multi": true,
              "childs": [
                
              ]
            }
          }
        },
        "comments": {
          "title": "Comments",
          "type": "list",
          "class": "publicationNewsComments",
          "isLink": true,
          "multi": true,
          "childs": [
            
          ]
        }
      }
    }
  },
  "plugins": {
    "newsDetail": [
      "News detail",
      {
        "template": {
          "label": "Template",
          "type": "files",
          "withoutExtension": true,
          "directory": "inc\/template\/publication\/news\/detail\/"
        },
        "replaceTitle": {
          "label": "Replace page title",
          "desc": "Replace the title of the item with the page title",
          "type": "checkbox",
          "default": "1"
        },
        "allowComments": {
          "label": "Allow comments",
          "type": "checkbox",
          "depends": {
            "itemsPerPage": {
              "needValue": 1,
              "label": "Count per page",
              "type": "integer",
              "length": "6",
              "default": "10"
            },
            "maxPages": {
              "needValue": 1,
              "label": "Max pages",
              "type": "integer",
              "length": "6",
              "default": "10"
            }
          }
        },
        "category_rsn": {
          "label": "Limit categories",
          "type": "select",
          "multi": true,
          "table": "publication_news_category",
          "table_label": "title",
          "table_id": "rsn"
        }
      }
    ],
    "newsDetailFixed": [
      "News detail fixed",
      {
        "template": {
          "label": "Template",
          "type": "files",
          "withoutExtension": true,
          "directory": "inc\/template\/publication\/news\/detail\/"
        },
        "news_rsn": {
          "label": "Article",
          "type": "select",
          "table": "publication_news",
          "table_label": "title",
          "table_id": "rsn"
        },
        "replaceTitle": {
          "label": "Replace page title",
          "desc": "Replace the title of the item with the page title",
          "type": "checkbox",
          "default": "1"
        },
        "allowComments": {
          "label": "Allow comments",
          "type": "checkbox",
          "depends": {
            "itemsPerPage": {
              "needValue": 1,
              "label": "Count per page",
              "type": "integer",
              "length": "6",
              "default": "10"
            },
            "maxPages": {
              "needValue": 1,
              "label": "Max pages",
              "type": "integer",
              "length": "6",
              "default": "10"
            }
          }
        }
      }
    ],
    "newsList": [
      "News list",
      {
        "itemsPerPage": {
          "label": "Count per page",
          "type": "integer",
          "length": "6",
          "default": "10"
        },
        "maxPages": {
          "label": "Max pages",
          "type": "integer",
          "length": "6",
          "default": "10"
        },
        "detailPage": {
          "label": "Detailpage",
          "type": "page"
        },
        "template": {
          "label": "Template",
          "type": "files",
          "withoutExtension": true,
          "directory": "inc\/template\/publication\/news\/list\/"
        },
        "category_rsn": {
          "label": "Limit categories",
          "type": "select",
          "multi": true,
          "table": "publication_news_category",
          "table_label": "title",
          "table_id": "rsn"
        },
        "enableRss": {
          "label": "Enable Rss view on this page",
          "type": "checkbox",
          "depends": {
            "rssTemplate": {
              "needValue": 1,
              "label": "Rss feed template",
              "type": "files",
              "withoutExtension": true,
              "directory": "inc\/template\/publication\/news\/rss\/"
            }
          }
        }
      }
    ],
    "rssList": [
      "News RSS Feed",
      {
        "itemsPerPage": {
          "label": "Maximum Items for rss feed",
          "type": "integer",
          "length": "6",
          "default": "10"
        },
        "detailPage": {
          "label": "Detailpage",
          "type": "page"
        },
        "template": {
          "label": "Template",
          "type": "files",
          "withoutExtension": true,
          "directory": "inc\/template\/publication\/news\/rss\/"
        },
        "category_rsn": {
          "label": "Category\/s",
          "type": "select",
          "multi": true,
          "table": "publication_news_category",
          "table_label": "title",
          "table_id": "rsn"
        }
      }
    ],
    "categoryList": [
      "Category list (with Counts)",
      {
        "listPage": {
          "label": "Page with list plugin",
          "type": "page"
        },
        "template": {
          "label": "Template",
          "type": "files",
          "withoutExtension": true,
          "directory": "inc\/template\/publication\/categoryList\/"
        },
        "category_rsn": {
          "label": "Limit categories",
          "type": "select",
          "multi": true,
          "table": "publication_news_category",
          "table_label": "title",
          "table_id": "rsn"
        }
      }
    ]
  },
  "db": {
     [snipped]
  },
  "tags": {
    "en": "news, blog, publication",
    "de": "news, blogs"
  },
  "depends": "kryn=>0.8.0"
}