• 瀏覽: 3,964
  • 回覆: 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

回覆 引用 TOP

引用:
原帖由 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 我有興趣



回覆 引用 TOP

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



回覆 引用 TOP

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

回覆 引用 TOP

piranha cms is updated to asp.net core 3.1


回覆 引用 TOP

提示: 作者被禁止或刪除 內容自動屏蔽
You must talk to us, “when you are fifteen, you want to take your life.” I say, “ Well! That’s okay! For me, I knee to myself and just free to talk with you a several posts needn’t money. Just for accompanying prince 🤴 to study his own homework.” Ha! Ha! What’s a cruel in the world! I have to show you not able to make example for skk silly low level .NET. 👻👻👻

Character: Focus on Value-added Rule of Key way to worship God and benefit people as a player of life in Chinese race to make money, health, family and country in shuttle century to be a Good, Humble, Smart and Serious Guy though isn't handsome enough that try disguise this fact in cool and style under love of Skywalker and neightbour and seeking to farm true roots to grow as a tree in struggle to all evil and unfair in justice in brace of corporation, natural person, institution, firm under basic law, common law of Hong Kong in North Half of the earth in friends of Singapore, Japan, Auckland, India, China, England with religon of Christians, Taos, Buddists as Monk who know automatic technology to build and use system in IT to faciliate work and process to conduct and manage business and fund to invest on future of materialized world which is full of symbolic representation for formulating culture and habit of a human being that seem right instead of frustrating using left to gain vision in Weather and Astronomical, Fate in order to understand and grab the now, review the past with personal philosophy with able to write/talk proposition under theorem with proof and is logically to transfer signal and message to power own company and projects for accomplish tasks and construct column and row to make table, list, span, division, section, heading, paragraph, button, input, icon, images, breadcrumb, navigation, links, pages, documents, etc ... make me some content!

[ 本帖最後由 台風中心的救星 於 2019-12-26 09:40 AM 編輯 ]



原來可以做到distributed cache


回覆 引用 TOP

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


回覆 引用 TOP

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