跳到主要內容

CKAN Theme Extension開發摘要


  • ckan版本:2.6
  • 測試日期:2017/11/17
(1)CKAN Theme Extension也是CKAN Extension,繼承IConfigurer界面
–Override update_config 方法
–呼叫使用add_template_directory,定義客製化目錄位址
(2)修改CAKN頁面的方式是「同名取代」
–所以若要進行首頁的取代,就要用自定的index.html取代預設的index.html
    1. 要知道欲取代的CAKN頁面名稱
    2. 路徑也要一樣,如首頁是/home/index.html
(3)CKAN Theme Extension和CKAN溝通的方式
–透過global variables和template helper functions
–template helper functions繼承ITemplateHelpers 界面
(4)CKAN Theme Extension使用的範本語言
–由Jinja2 template language撰寫,產生CKAN頁面
–前台框架使用Bootstrap 2.3.2










留言

這個網誌中的熱門文章

CKAN Template Index.html架構

(1)Index.html頁面呈現 (2)Index.html實際架構 (3)Index.html內容 (4)layout1.html(snippet)內容 (5)Bootstrap2 Grid System Ckan首頁的例子是用2個span6,也就是平均分配

ISO/IEC 25012資料品質研究

ISO/IEC 25012共定義了15種資料品質特性,可以被歸類3個主要的分類 第一類:固有資料品質(Inherent Data Quality) 第二類:系統相依資料品質(System-Dependent Data Quality) 第三類:固有及系統相依資料品質(Inherent and System-Dependent Data Quality )

CKAN Template Index.html snippets內容

(1)promted.html內容 (2)search.html內容 (3)featured_group.html內容 (4)featured_organization.html內容