CCK

Djun Kim
2008
11
02

CCK - CoCKTaiL Part 3

Blog
created on 周日, 2008-02-10 21:14

Update

As promised in my last post, I will present a CoCKTaiL-based code-generator, which accepts CoCKTaiL input and generates php suitable for importing into Drupal via the CCK Content-copy module.

DrupalCon Session

I have submitted a session proposal on Taming CCK configurations with CoCKTail for DrupalCon Boston. Please consider reviewing this and voting for it if you would be interested in seeing CoCKTaiL gain a wider following.

Code available via anonymous SVN

I have made code available via anonymous svn at Raincity's public SVN repository. I encourage anyone interested to have a look at this, take it for a spin, and contribute! But, be warned that this is still very experimental code.

Status

The current version of the code supplies a command-line validator, which checks CoCKTaiL code. The error reporting is extremely naive, still. Also, there is a template-based code generator, which will take CoCKTaiL as input, and generate php code suitable for import into a Drupal application. Both of these are specified as PHP Lemon input files, sharing a common grammar (and Lexer), of course.

Djun Kim
2008
10
01

CoCKTaiL, part 2

Blog
created on 周四, 2008-01-10 16:53

The CoCKTaiL grammar

In my last article I gave some examples and discussed the movtivation for CoCKTaiL, a Drupal CCK type language. I promised that I would describe the grammer I have been working on and say a few words about the tools I have been using.

I should begin by saying that this is very much a work in progress, so what you see here should not be regarded as a specification, or any kind of promise of the final shape of things to come. Rather, it is an invitation to join in the party and help to bring this tool into being. I welcome any comments, suggestions, and help with development, testing, and documentation. In particular, if you have thoughts on how the grammar itself could be changed to make it simpler, or otherwise better, I'd love your input.

Without further ado, then, here is the grammar (at the current moment) of CoCKTaiL. The following is the output of the relatively new lemon parser-generator, about which we shall say more just a bit later. Note: the numbers at the start of each line are not part of the output; they have been added to allow reference to particular lines in the following discussion.

Roland Tanglao
2007
18
04

Tokyo Yokohama Information Source - An expat resource

Blog
created on 周三, 2007-04-18 07:11 Tokyo Yokohama Information Source - screenshot

Are you an expat seeking Tokyo Yokahama information? Then Tokyo Yokohama Information Source is for you.

When I lived in England and Germany back in the mid 1990s, I would have loved to have run a one stop shop information source community site for expats like this site. I had the desire to do this but not the tools because the web was in its infancy.

Tokyo Yokohama Information Source (a Bryght Light Drupal 5 site) illustrates the progress we have made with our web tools. Tokyo Yokohama Information Source is a "one stop" shop source of Tokyo Yokohama Information that was quickly designed and implemented using Drupal and the Bryght Basic Install profile by one person with one person creating content. This would have taken several people and much more time back in the 90s.

This site shows you how far and how quickly you can take the default Garland theme and make it your own. Bryght reseller Kelina Kwan has added a beautiful logo and changed the colors and she's picking up on cool Drupal features like Views (e.g. see the event listing) and figuring out how to use CCK and Views in a future iteration of the site. Kelina's a self described Drupal novice but her previous HTML, CSS, flash, and audio experience have accelerated her learning.

聚合内容