如何在 HTML 帮助研讨会中设置默认页面

发布于 2024-08-15 20:21:44 字数 181 浏览 12 评论 0原文

我在 HTML 帮助研讨会中创建了一个项目。当我打开帮助 (/chm) 应用程序时,我可以看到目录。默认情况下,选择文件中的第一个条目。

但是我看不到相应的页面数据,而是看到“此程序无法显示网页”(IE7 中的默认错误消息)。仅当我单击左侧的任何内容时才会显示该页面。

有没有一种方法可以默认显示页面而无需单击条目?

I have created a project in HTML help workshop. When I open the help (/chm) application, I could see table of contents. By default, first entry in the file is selected.

However I couldn't see the corresponding page data instead I am able to see "This program cannot display the web page" (default error message that comes in IE7). The page is displayed only when I click on any of the contents on the left side.

Is there a way of showing the page by default with out clicking on the entry?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

你列表最软的妹 2024-08-22 20:21:44

自从我上次使用 HTML Workshop 以来已经有几年了,我不再安装它,但我刚刚检查了一些旧的文档源,.hhp 文件中有以下条目:

[OPTIONS]
Default topic=index.html

我很确定有一些也可以通过 HHWS GUI 进行设置。

It's been a couple of years since I last used HTML Workshop and I don't have it installed anymore but I just checked out some old doc sources and there's the following entry in the .hhp-file:

[OPTIONS]
Default topic=index.html

I'm pretty sure there was some way to set this via the HHWS GUI, too.

妄想挽回 2024-08-22 20:21:44

从 HTML Help Workshop GUI 设置默认页面的步骤:

  • 转到“项目”选项卡
  • ,双击“[选项]”列表中的任意项目。打开“选项”窗口。
  • 选择“常规”选项卡
  • 在“默认文件:”组合框中选择/写入文件路径和名称,然后
  • 按“确定”

Steps for setting the Default page from the HTML Help Workshop GUI:

  • go to "Project" tab
  • double-click any item in the "[OPTIONS]" list. Opens the "Options" window.
  • select "General" tab
  • select/write the file path and name in the "Default file:" combobox
  • press OK
っ〆星空下的拥抱 2024-08-22 20:21:44

OP 没有说“是的,它有效”,所以我要添加一些内容,因为下次您编写 HHW 项目时,如果您花了一些时间没有编写一个项目,则根据您使用的创作工具,您将获得一个犯这个错误的概率很大。

我经常有这种显示,但只在一种精确的情况下:页面的路径以绝对路径给出,在任何情况下都不存在于 chm 文件中。
您必须从项目所在的地方开始。

C:\HTML 帮助项目\TestProject\SomeFolder\SomePage.html
不要链接到
C:\HTML Help Project\TestProject\SomeOtherPage.html

而是
..\SomeOtherPage.html

以及项目的 [Files] 部分中,避免使用绝对路径。正如我所说,而是从项目文件夹开始。

这对于 BlueGriffon 中的链接尤其常见,我忘记选中复选框以使链接与文档相关,不幸的是,这似乎不是默认值。

不确定,但我想我记得这个错误也记录在不支持路径的单元上的页面:UNC 路径、某些网络单元...

The OP did not say "Yeah, it worked", so I am going to add something, as the next time you write a HHW project, if you spent some time without writing one, depending on the authoring tools you use, you have a high probability to commit this error.

I often had that display, but only in one precise case : the paths to the pages were given as absolute paths, which in no case exist in a chm file.
You must start where the project is.
From
C:\HTML Help Project\TestProject\SomeFolder\SomePage.html
do not link to
C:\HTML Help Project\TestProject\SomeOtherPage.html

but rather to
..\SomeOtherPage.html

and also in the [Files] section of the project, avoid the absolute paths. Rather start from the project folder, as I said.

That was particularly frequent for links as in BlueGriffon, I forgot to check the checkbox to make the link relative to the document, which unfortunately does not appear to be the default value.

Not sure but I think I remember this error is also documented for pages on a unit to which the path is not supported : UNC paths, some network units ...

挖鼻大婶 2024-08-22 20:21:44

在资源管理器中获取文件的属性,查看它是否已解锁,否则将其解锁。

从 XPsp2 左右开始,CHM 在下载后(或在某些情况下复制共享)后会被阻止正确显示

Take the properties of the file in the explorer, and see if it is unblocked, and unblock it else.

Since XPsp2 or so, CHMs are blocked from properly displaying after downloading (or copying of a share in some cases)

花开雨落又逢春i 2024-08-22 20:21:44

我不太确定你在问什么,但默认情况下,如果在文件夹中找到index.htm(l),大多数服务器都会提供该服务。

您可以尝试命名其中一个文件,看看是否有帮助。

I'm not really sure what you're asking, but by default most servers will serve index.htm(l) if that is found in a folder.

You might try to name one of the files that, and see if that helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文