Uncategorized


Long time, no article. I was very busy and even more of a lazy bummer. I hadn’t worked on Crisoft for several month, but now I try to get back into it again. I travel a lot for some months now, so I have lots of time in the trains to get some things done.

I started with adding new views to add and edit recipes, a new reference to a class called Season, that is intended to provide localization later. I think I can add some more things like detailed pages to add and edit recipes, categories, types, comments and users. I try to read about how user management can be organized with CakePHP and implement a simple to use user management with access control. I imaging Crisoft to handle different roles with different rights, i.e. Administrator, Editor and User. But that’s -again- too much to talk about now.

What I want to achieve in, let’s say, 4 weeks is a first release of the CakePHP branch that allows user to convert the existing database and use it to browse, add and edit new recipes. Wish me luck! :-)

Today I’m working on the installation scripts. I want them to follow the themeing - even if it’s only the default theme while installing - and I want them to work smoothly. Without warnings about “potentially dangerous passwords” if you use some special characters like I do.

There were some other issues with the installation and I want this problems to be removed before I release a new version. There was a silly error when the password was rejected and you were directed to the configuration form. Some values were resetted, some not. This was a major issue when I installed Crisoft Ricette the first time - I was so irritated that I was just a step before deleting everything. ;-)

Today I uploaded a few screenshots of a new layout, that I created to test the new Change Stylesheet function of CR. Here is a short description how to add a new layout:

  • create a new directory in layout/
  • put a file named stylesheet.css in it
  • move your images into the same directory
  • go to admin menu, click Change Setup and choose the new style

That’s it. Ok, there are some more steps for me as a developer: Adding a way to reference images in the stylesheet in relative paths, but display them in CR, too. That’s a bit tricky, because I don’t want absolute path names in the stylesheet - that’s a huge problem for changing layouts through different sizes. If you installed CR on www.domain1.org, you don’t want to change the stylesheet if you put your layout to www.domain2.org… hm, need to think about that. Maybe I can copy the wordpress style of themes - in a small way.

Now, back to the screenshots. I uploaded them to my Flickr Account and I’ll do so with all screenshots. Here are the first 3 shots:

Home page of Crisoft Ricette Browse Recipes in Crisoft Ricette Login Screen

The theme is called Slick and I will use it for my testing purposes. It’s easier to check the XHTML/CSS functionality with a working stylesheet on your hands. Don’t expect much grafic work in this theme.