Kooboo CMS Boring Essays (1)

Source: Internet
Author: User

Because the company's framework is not open source, but has always been interested in research framework, so took an open-source framework, and this open-source framework is Kooboo CMS. First I can not use words to describe my praise of this CMS, in short, we know a little, this CMS is a very good CMS, the function is very strong, the code is also written very good, very valuable research.

Since not all of the people have an understanding of Kooboo CMS, I still do a simple introduction, counted as the beginning of this series.

Http://www.cnblogs.com/hjf1223/archive/2009/08/15/Kooboo_CMS.html just casually found an article on the Internet, this person is very cow (in fact, I think the general Daniel is not bothered to write a blog it), So the ability to hide their own, simply said, Kooboo CMS is a team in China developed a determined to take the internationalization of the path of the CMS system, using the ASP. NET MVC4 as the framework of the CMS. This is very rare in the country, because most of the CMS are Java or PHP, or. NET CMS are some old-fashioned, only Kooboo CMS, has been updated to the present, the official website can be Baidu, but all are in English. Kooboo CMS All the code can be downloaded in http://kooboo.codeplex.com/, the source code is hosted on GitHub above.

First of all, I would like to introduce the use of CMS, and then the code structure. CMS installation method is very simple, is to download the source code under CodePlex, and then unzip the source code, and then put the folder on the local or remote IIS on the OK, the specific I will not say, we still look at the Kooboo cms of the flesh, the following to the native way to run. First enter Http://localhost:9012/admin, is to enter the management interface, the default account and password is admin/admin, we enter the Kooboo CMS backstage.

  

Because Kooboo CMS is an internationalization-oriented CMS, so we can actually change the language, I even see the Arabic, OK, the topic is far away. Let's take a look at its overall function.

1. Website cluster: Say simple, a CMS can build countless sites, each site below can have countless sub-sites, this is the site cluster.

2. Relationship: The following diagram is the relationship shown, the relationship to the site-content database-members together, simply say, their relationship is: 1 sites can only have a unique database and membership database, but a database or membership list can be shared by multiple sites, good (*^__^*) Hee ... ...?!

3. Content: Actually is the content database, because Kooboo CMS is a very powerful CMS, so naturally support all the database on the market including the XML (the default), but at the same time can only support a paragraph, if necessary, you can download the CodePlex above the corresponding Provider , the specific above link has been written, I will not say more, I go to find. If you don't use the default storage (assuming SQL Server), such as my SQL Server, you may ask, I do not have a table to do, in fact, you just need to set up the database is OK, the table it will automatically help you generate, such as:

In fact, its naming is normative, such as KOOBOO_CMS is the name of the content database, followed by the equivalent of "table name", a database can exist in multiple content databases, they are differentiated by different prefixes.

4. Members, similar to what is said above, is the table of the membership table, of course, this belongs to Membership_provider, here I want to do a little note, there are 2 Provider similar, one is Account_provider, The other is Membership_provider, where are their differences? Account is the user into the background, and membership is a user of a website, account can enter the background, and have different roles have different permissions, you can see different things, and membership can not enter the background, So far I have not found a common method for front-end users and background users. Our front desk registered users are membership type of users, and account type users can only be added in the background by the system administrator, I personally feel that this is not dz good, but then back, DZ is TX support, this can compare?

5. Website Template: This I did not delve into, but a simple point, the template is a good site, you use the template, all the pages have been done, of course, you can go to the official website of Kooboo CMS to download the template, but are English, who call this CMS is the internationalization of the route it?

6, and 7 I have not studied for the time being, so I do not say.

  

Let's just go into a website (how to create a new website or not, this is too simple). The following interface appears:

We can clearly see this site "organization Chart", these home,about, and so on, are actually displayed in the Navigation bar "Dynamic page", in fact, I personally feel that these can not be understood as a classification, should be understood as a different view page, where we can do development work, Kooboo CMS is very convenient to provide the page modification function, we point to look in:

You see, above the place, there are toolbars, specific I will not say, if the CMS is interested, you can study it, are very clear (after all, do not write their own code, directly to use), the following places can add blocks, these blocks are not free to add, But in our layout, the position specified. Kooboo CMS as a powerful CMS, the function of the site has made a huge expansion, such as have their own way to write code, have their own editor, such as, I give you first show the layout design editor.

  

  

A bit like the editor of DW? In fact, the only drawback, I personally think, is the editor does not automatically prompt the function of the code, if there is, it is too powerful, the right can also insert a pre-written auxiliary code, how about the Ox x bar. We can make full use of Kooboo CMS ready-made methods, such as the above @url.fronturl () ... Is the CMS inside the method, we can locate the specific folder under. But this is the most important, we are most concerned about, I think still how to locate the specific content framework, like the place said, in fact, is very simple, is to use @Html. fronthtml (). Position ("main2") outside with a layer of div to a div called main2 on the line. This is the essence of the layout.

Here we look at the view, in fact, the views here are part of the view, you can think of it as a small layout, put a picture, in fact, and layout of the wording is no different.

Specific code how to write, look at the requirements of the subset, but also to look at the source, so that we know what methods can be used, used better, as for the help document, I personally do not recommend the official, write too general, but interested can go to CodePlex above download, is a CHM document, but all in English. We can add files inside the website, or go to the physical folder, but this add file to have attention, specific can see sample site (Kooboo CMS comes with a sample website).

In addition Kooboo CMS also comes with a label system, the label can represent a paragraph of text, as long as the use of this label place, you can display a specific text, easy to change, once and for all. We can create a new page, and the page is based on the layout page, and each page corresponds to a cshtml view layer.

In fact, I think the most powerful place of the CMS is the custom type, such as you have a type, this type can implement different functions, say simple, you can DIY to create features, such as I want to freely assemble their own content page, I want to have a title, there is a subtitle, In the subtitle below the left can create a video, the right to create a text editor, I do not want to tell you clearly, say a little bit more simple, in fact, this is the case.

Then, like this, you can choose a different type.

And then it ends up like this:

is the different content category = =, as if I describe the complexity.

Content can be bound to a specific category of content.

Then we can add this block to the page, just like this.

It will show the content type, OK, today I still do not introduce the code, and then have the space to introduce the code structure.

Kooboo CMS Boring Essays (1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.