Title photo
Ode is simple! (Simple means that you know how it works.)

Hello, and welcome to news.ode-is-simple.com.

This is a weblog dedicated to Ode (ode-is-simple.com) and other topics relevant to the project.

If you're looking for general info about Ode you may want to start at the project homepage at ode.simple.com/home

To stay up to date with the newest news and info related to Ode, subscribe to this site's RSS 2.0 using Google Reader or your preferred feed reader.

Posts

Sun, 13 Jun 2010

New Ode release is available (1.2.3)

Ode 1.2.3 is available to download now from ode-is-simple.com/home/.

What's changed?

1 - Fixed a problem with anchor links introduced with the updated behavior for handling relative paths in themes with release (r1_2_1).

2 - Revisited how the script manages tags by reworking 3 key subroutines.

3 - Changed the order of the settings in the config file 'ode_config'.

1 - Fixed a problem with anchor links introduced with the behavior for handling relative paths in themes with release (r1_2_1).

From the 'description_of_changes' included in the 1.2.1 release:

More about these relative links

On their own relative links will not work under Ode. Why?

Relative paths are always interpreted as relative to the request.

Because Ode is assembling the page from themes which are not directly tied to the request path, relative paths won't work.

...

Generally speaking, as far as Ode is concerned a URI isn't a request for a page at all. It's something more like a set of instructions the script can use to assemble a page in response to the request.

That means that the script must identify, interpret and rewrite relative links in theme files so that they behave as expected.

It's just as important that the script interpret and rewrite ONLY the relative links.

In that earlier release I said there are four cases we need to be aware of:

Relative links Absolute links Links whose value is a complete URI Links that starts with a scalar variable name

But I should have added a 5th:

Anchor links.

With release 1.2.3 the script now leaves these anchor links alone.

2 - Revisited how the script manages tags by reworking 3 key subroutines:

add_tag, destroy_tag get_tag_value,

Indexette, which made available along with ode r1.2.3, features an 'index-date' tag, which the addin uses to manage post dates (see Indexette's documentation for more info).

Indexette makes more extensive use of Ode's tags than the few addins that have come before it. So this was a good opportunity to look at what Ode was doing to manage these tags.

This was a modification, not a fix. There is no change in behavior associated with this.

3 - Changed the order of the settings in the config file 'ode_config'.

Only three (3) of the thirty (30) settings in the config file must be set.

Those 3 settings are:

  1. $document_root
  2. $document_root_url
  3. $addin_dir

All of the others are set to reasonable default values and can be left unchanged.

As of release 1.2.3, these options have been moved to near the top of the config file to make them easier to find and identify.

These settings are also marked in the config file.