Thomas, I have a simple website with a sub directory within the src directory. I wanted the content of this directory to be displayed in the menu as the second to last item. I have an index.page in the subdirectory, but get warn message that "No directory index path found for directory </buysell>". I would like to solve this problem with the htmldoc.metainfo file. The following setup below is what I tried first. The index.page file for the sub directory has the following in the metainfo portion: routed_title: Buying or Selling title: Buying or Selling in_menu: false sort_info: 40 The website structure looks like this: /src /src/index.page /src/buysell/index.page The above setup would work, but would be placed at the end of the menu instead of where I wanted it. I would also get the error "No directory index path found for directory </buysell>". --Round two-- I copied the htmldoc.metainfo file from the misc folder that was bundled with webgen5.4 and pasted that in my src directory. I changed the first entry for the index page in the buysell directory and deleted the rest. --- name:alcn /buysell/index.html: routed_title: Buying or Selling in_menu: true sort_info: 40 Left the index.page file unchagned, no change in the output. I then tried add the name:path, but that didn''t work either. Where did I get lost? Thanks, Sven
Am Sun, 14 Sep 2008 06:09:11 -0700 (PDT) schrieb Sven <sven.was.here at gmail.com>:> I have a simple website with a sub directory within the src > directory. I wanted the content of this directory to be displayed in > the menu as the second to last item. I have an index.page in the > subdirectory, but get warn message that "No directory index path found > for directory </buysell>". I would like to solve this problem with > the htmldoc.metainfo file. The following setup below is what I tried > first. > > The index.page file for the sub directory has the following in the > metainfo portion: > > routed_title: Buying or Selling > title: Buying or Selling > in_menu: false > sort_info: 40That looks fine. However, be aware that the sort_info meta information is used for sorting the second level menu and not the first level menu where the submenu appears! You need to set the sort_info meta information directly on the directory!> The website structure looks like this: > > /src > /src/index.page > /src/buysell/index.page > > The above setup would work, but would be placed at the end of the menu > instead of where I wanted it. I would also get the error "No > directory index path found for directory </buysell>".This may not be an error... I sometimes get this too (for the htmldoc directory) although I haven''t figured out what causes this bug. So you need to check the generated files if the link in the menu points to the correct page.> --Round two-- > > I copied the htmldoc.metainfo file from the misc folder that was > bundled with webgen5.4 and pasted that in my src directory. I changed > the first entry for the index page in the buysell directory and > deleted the rest. > > --- name:alcn > /buysell/index.html: > routed_title: Buying or Selling > in_menu: true > sort_info: 40As I said above: setting the meta information for the index.html file won''t work! You have to set it for the directory. Also note that you have to use `index.en.html` (the (absolute) localized canonical name) and not `index.html` (the (absolute) canonical name)! Put the following into your metainfo file which should give you the correct result: /buysell/: title: Buying or Selling in_menu: true sort_info: 40 -- Thomas
Thomas, I updated the htmldoc.metainfo file as suggested with the explicit definition for the buysell directory and it worked perfectly!!!! Thanks for helping me get this figured out. I also went ahead and updated the htmldoc.metainfo file to reflect the order of all the other pages that I wanted in the menu as well like I did using webgen 4.7 and everything is working. Thanks, Sven