Thomas, I am experimenting with virtual links and cannot seem to get this to work right. I copied the htmldoc.virtual file out of the mics folder that was bundled with webgen5.4 and pasted that into my src directory. I then edited the file to the link I wanted to use. api.html url: http://mylink.com title: This is my link in_menu: true sort_info: 60 The link is in the menu for the website, but in the wrong place with a bad link. The link is changed to ../http:/mylink.com. I also wanted the link to be the last one in the menu, but I think that may caused by another problem that I am having with the htmldoc.metainfo file which I will start a second post for. Since that I didn''t work I then looked at the example from the extension info about virtual files on your site and changed the htmldoc.virtual to the following: \--- !omap api.html: url: http://mylink.com title: This is my link in_menu: true sort_info: 60 When I go to render the site I get and error "can''t convert string into Hash". I''m sure I am missing something obvious here, but can''t see it yet. Thanks, Sven
Am Sun, 14 Sep 2008 05:53:24 -0700 (PDT) schrieb Sven <sven.was.here at gmail.com>:> I am experimenting with virtual links and cannot seem to get this to > work right. > > I copied the htmldoc.virtual file out of the mics folder that was > bundled with webgen5.4 and pasted that into my src directory. I then > edited the file to the link I wanted to use. > > api.html > url: http://mylink.com > title: This is my link > in_menu: true > sort_info: 60 > > The link is in the menu for the website, but in the wrong place with a > bad link. The link is changed to ../http:/mylink.com. I also wanted > the link to be the last one in the menu, but I think that may caused > by another problem that I am having with the htmldoc.metainfo file > which I will start a second post for.Another user already filed a bug report for this and I have fixed in my git repository. Will make a bug fix release soon. Note: there needs to be a colon after api.html!! Apart from that it looks fine.> Since that I didn''t work I then looked at the example from the > extension info about virtual files on your site and changed the > htmldoc.virtual to the following: > > \--- !omap > api.html: > url: http://mylink.com > title: This is my link > in_menu: true > sort_info: 60 > > When I go to render the site I get and error "can''t convert string > into Hash". I''m sure I am missing something obvious here, but can''t > see it yet.I used the YAML omap type to order the keys. You can just use a normal hash if you want. Note: You need to use ''- api.html:'' instead of ''api.html:'' since this is how omaps are defined! So it should be: \--- !omap - api.html: url: http://mylink.com title: This is my link in_menu: true sort_info: 60 This should work! -- Thomas