[webgen-users] extension name

Sven
Tue, 23 Sep 2008 17:42:37 -0000

>
> > 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.

There was no cache generated to delete.

> > 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.

I had tried both of those ideas listed above and they didn''t work
either.  I think I hosed something up at this point because I only get
An error has occurred:   undefined method `[]='' for nil:NilClass
everytime I run webgen on the src directory.  I will start from
scratch to see if I can get that to work.

Sven