noumo / easyii

Easy yii2 cms powered by Yii framework 2
http://easyiicms.com
593 stars 272 forks source link

Dev - new module "content" and other things #99

Open boehsermoe opened 8 years ago

boehsermoe commented 8 years ago

Hi, at first nice project ;) I tried out for a small website and I needed to manage the sites and there contents. Also I wrote the Content-module. There comes some more changes. I hope you like it :pray: :) With the last pull from your dev, there was some conflicts but I think I'd fix it all correctly.

I would be pleased if I can help you to develop easyii further.

noumo commented 8 years ago

Awesome job! Based on this change: https://github.com/noumo/easyii/pull/99/files#diff-fdefa579a096735b1b0267abb9d23d2eR9 Can i suggest that you know russian lang?

boehsermoe commented 8 years ago

Nice too here! I'm sorry but I'm from germany and dont understand russian.

boehsermoe commented 8 years ago

There is one more feature. In components/ApiObject.php I add the placeholder function, which I use in the content module. It looks for the key from {{placeholder}} and replaced it with the value from the settings.

noumo commented 8 years ago

Can you describe your module content. Which problems he solves?

boehsermoe commented 8 years ago

It have some more feature than the page module. Each page have a category/layout, where you can configure custom fields, similar to the catalog module. So you can configure some fields and use it for multiple pages. You can also create sub pages! Each page have a navigation option and the api_nav function (https://github.com/boehsermoe/easyii/blob/dev/modules/content/api/Content.php) will generate the navigation based on these pages. The subpages will be generate as a dropdown.

martins-giberts commented 8 years ago

This is like advanced text block module?

boehsermoe commented 8 years ago

No. More like the catalog module but customized to manage pages (with sub-pages) and navigation. And with placeholder for the setting values.

martins-giberts commented 8 years ago

That sounds nice!

noumo commented 8 years ago

@boehsermoe, did you see new module "Entity"? I think it similar to your's and solves same problems.

boehsermoe commented 8 years ago

Yes, it really similar to entity module. But it is not possible to create sub-items and manage the navigation. The first thing that I will do in a cms is to create pages and put it in to the navi. With the entity module cannot not start simply. The entity module is good to create quickly a custom object with a simple structure.

boehsermoe commented 8 years ago

Hey here is a short tutorial, how to use the content module: easyii start.zip

noumo commented 8 years ago

@boehsermoe, you made awesome work, sorry for long idle. I will merge your pull requests, after release 0.9.1 version. hope it ready

boehsermoe commented 8 years ago

Thank you, nice to hear! :)

boehsermoe commented 8 years ago

@noumo please check this out: http://easyii.boehsermoe.de/admin/content (Username: root; PW: easyii) There you can see how the content modules works.It is much more differently to the page module.

noumo commented 8 years ago

@boehsermoe Your module looks very interesting and more difficult, but i dont exactly understand some things. All blocks(heading, image, html), except container you can make with redactor or via fields. And easyiicms is not a common CMS, main philosofy of easyii- is to be just a module which provides content from API. All frontend styles and layouts on developer. Also I'm want in next version make API accessible from rest service. Sorry if I upset you.