June 28, 2007

the new repository

Filed under: ZenMagick — DerManoMann @ 6:25 am

… is almost done; praise to cvs2svn - not a single error!
It probably won’t be complete (as far as my person is concerned), still, it will contains everything needed to build a release and plugin packages.

HowTo: Creating a theme

Filed under: ZenMagick — DerManoMann @ 4:34 am

This is a small HowTo based on a forum post I did today. I think there is something similar already
somewhere, but just in case…
(more…)

June 25, 2007

waiting for a release?

Filed under: ZenMagick — DerManoMann @ 4:29 am

The next release might be a bit delayed, because finally I started working on converting my local CVS repository into a subversion repository which, in turn, then can be imported into sourceforge.

I expect this to take at least a week, considering my current workload and the fact that some of the source needs reorganisation in order to make sense to other people.

June 15, 2007

more on plugins

Filed under: ZenMagick — DerManoMann @ 1:51 am

Plugins will be the major focus for the upcoming 0.8.1 release. In order to get a better feel for what is actually good or requiried, I started another plugin that will be both useful and instructive: a wiki plugin. Existing plugins will be updated and improved along the way, too. (more…)

June 14, 2007

Ultimate SEO

Filed under: ZenMagick — DerManoMann @ 1:37 am

Yesterday someone pointed out to me that there is a new version of Ultimate SEO available (3.0.b1). That’s where I made my first mistake! Without so much as downloading the new version I said that support for the new version wouldn’t be a problem. So, guess what? (more…)

June 13, 2007

external_example.php

Filed under: ZenMagick — DerManoMann @ 3:53 am

I think it would be good to dwell a bit longer on external_example.php as it seems to be of particular interest.

external_example.php was added in release 0.8.0.1 and is intended to illustrate how folks could execute controller programmatically. While this works (to a degree), there are a few serious limitations I might have forgotten to mention :/

(more…)

June 5, 2007

random facts III

Filed under: ZenMagick — DerManoMann @ 10:23 pm

custom cache settings via local.php

ZenMagick supports individual configuration settings per theme as well as global settings. The code is expected in a file named local.php. The sample file is full of examples to configure ZenMagick one way or the other. A fact that gets ignored here is, that local.php can contain any PHP code. (more…)

June 1, 2007

the setting I forgot about

Filed under: ZenMagick — DerManoMann @ 1:35 am

This is another episode about random ZenMagick facts.

Todays’s topic is the magic setting metaTitlePrefix, which has a default value of title_. I had all but forgotten about this setting until this week I did some changes to ZMMetaTags.

The relevant code where it is used looks like this:
$pageTitleKey = zm_setting('metaTitlePrefix').$page;
if (null != _zm_l10n_lookup($pageTitleKey, null)) {
$title = zm_l10n_get($pageTitleKey);
}

So, what it does is looking for an l10n mapping with a key of ‘title_’.$page, for example, for the homepage this would evaluate to title_index. If the language map contains that key, the value would be used as title.

In more general terms this means that the keys in the language map do not need to be proper text, but can be any string you like. The advantage of using text, as done in ZenMagick, is that mappings are only needed if multiple languages need to be supported (or English is not your language).

Other situations where using a prefix might be useful could include things like custom meta tags keywords or other page specific data.