• 瀏覽: 5,509
  • 回覆: 24
[隱藏]
佢 CMS 個 C 係代表咩呢?官網首頁冇講嘅


熱賣及精選
引用:
原帖由 有諗辦法 於 2019-11-30 12:35 PM 發表

佢 CMS 個 C 係代表咩呢?官網首頁冇講嘅
C is Content, What is content? In its code representation, you may define content types as BlogArchive, StandardPage and TeaserPage.

     // way to build content types
     var pageTypeBuilder = new Piranha.AttributeBuilder.PageTypeBuilder(api)
           .AddType(typeof(Models.BlogArchive))
           .AddType(typeof(Models.StandardPage))
           .AddType(typeof(Models.TeaserPage))
           .Build()

Where "*Page" are derived from PageBase,,
Inside the Pages, there are Blocks, Regions,
Inside Regions, there are Fields,
And fields could be image, text, html, markdowntext ..., and yourown custom fields

Now, I'm fully understand what "C" is.



PiranhaCMS comes with interesting modular design, every project has a Module c# file and a IServiceCollections extension, this ServiceCollection will register own Module in the same project, in code

"Piranha.App.Modules.Register<Piranha.WebApi.Module>()"



附件

way_to_register_module.png(105.39 KB)

2019-11-30 11:59 PM

way_to_register_module.png

module_webapi.png(122.18 KB)

2019-11-30 11:59 PM

module_webapi.png

引用:
原帖由 form5 於 2019-11-30 11:40 PM 發表


C is Content, What is content? In its code representation, you may define content types as BlogArchive, StandardPage and TeaserPage.

     // way to build content types
     var pageTypeBuilder = ...
Content 我唔啱使,如果係 Customer 或者 Central 我有興趣



[隱藏]
食人魚用vue,   唔知 add block 時 vue 同 c# controller 怎樣互動?
有冇人講下呢?



mmh, Piranha.Manager are the core for the block editor


附件

block_select_api_from_vue.png(206.89 KB)

2019-12-3 10:14 PM

block_select_api_from_vue.png

piranha cms is updated to asp.net core 3.1


提示: 作者被禁止或刪除 內容自動屏蔽
原來可以做到distributed cache


[隱藏]
吾見有Tracking user activity 嘅 Implementation


提示:支持鍵盤翻頁左 右
[按此隱藏 Google 建議的相符內容]