[webgen-users] extension name

Thomas Leitner
Tue, 23 Sep 2008 14:33:40 -0000

Am Mon, 22 Sep 2008 16:29:17 -0700 (PDT)
schrieb Sven <sven.was.here at gmail.com>:

> Thomas,
>
> I am trying to get the page files to have an extension of .php instead
> of .html.  I haven''t been successful yet trying to use the
examples on
> the site.  I get the error An error has occurred:   undefined method
> `[]='' for nil:NilClass.  I have removed all the changes from the
files
> and still get this error too.

Delete the cache and try again.

> I tried adding the following to the config.yaml:
>
> default_meta_info:
>   Page:
>     output_path_style: [:parent, :cnbase, :lang, :ext]
>
> I then created a file called about.php.page, but that didn''t work.
I
> am not sure how to properly set the tags or make this work.

If you want all page files to have the extension php instead of html,
you can add the following to the config.yaml file:

default_meta_info:
  Page:
    output_path_style: [:parent, :cnbase, [., :lang], .php]

If you just want some page files to have another extension, just set
the output_path_style in the meta information block of the page file.

-- Thomas