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. 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. Sven
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
> > > 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
Thomas, I found the problem that was causing the An error has occurred: undefined method `[]='' for nil:NilClass, it was from using a string for maruku # This a h1 header {#myid} The {#myid} would not work. I then applied default_meta_info: Page: output_path_style: [:parent, :cnbase, [., :lang], .php] Which now works!!! After I deleted the cache when first trying this the {#myid} started causing an error, I will have to keep playing around with that. Thanks, Sven
Am Tue, 23 Sep 2008 18:16:36 -0700 (PDT) schrieb Sven <sven.was.here at gmail.com>:> Thomas, > > I found the problem that was causing the An error has occurred: > undefined method `[]='' for nil:NilClass, it was from using a string > for maruku > # This a h1 header {#myid} > > The {#myid} would not work.Try using {: #myid}. I think the syntax has slightly changed between the versions of Maruku. However, I have tried both versions (with and without the colon) on my local install with Maruku 0.5.9 and both worked just fine. -- Thomas