Webhelp

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Post Reply
dcraggs
Posts: 20
Joined: Thu Oct 26, 2006 2:58 pm

Webhelp

Unread post by dcraggs »

Hi,

Would it be possible to output webhelp files with the extension .aspx instead of .htm?

I believe this would then mean role based security could work in web config.

Regards

Dave Craggs
dcraggs
Posts: 20
Joined: Thu Oct 26, 2006 2:58 pm

Re: Webhelp

Unread post by dcraggs »

OK - ignore that.

All I had to do was add .htm files to the handler mapping :-)

Dave
dcraggs
Posts: 20
Joined: Thu Oct 26, 2006 2:58 pm

Re: Webhelp

Unread post by dcraggs »

Or maybe is doesn't...

DAve
dcraggs
Posts: 20
Joined: Thu Oct 26, 2006 2:58 pm

Re: Webhelp

Unread post by dcraggs »

Cracked it. You have to add the handlers into the main web config

Code: Select all

  <system.webServer>
    <handlers>
      <add name="htm to asp" path="*.htm" verb="*" type="System.Web.UI.PageHandlerFactory" resourceType="Unspecified" preCondition="integratedMode" />
      <add name="html to asp" path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory" resourceType="Unspecified" preCondition="integratedMode" />
      <add name="pdf to asp" path="*.pdf" verb="*" type="System.Web.UI.PageHandlerFactory" resourceType="Unspecified" preCondition="integratedMode" />
    </handlers>
  </system.webServer>
plus

Code: Select all

    <compilation targetFramework="4.5.2"> 
       <buildProviders>
         <add extension=".htm" type="System.Web.Compilation.PageBuildProvider" />
         <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
         <add extension=".pdf" type="System.Web.Compilation.PageBuildProvider" />
    </buildProviders>
   </compilation>

Now seems to be working.

Dave
User avatar
Tim Green
Site Admin
Posts: 23156
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Webhelp

Unread post by Tim Green »

Hi Dave,

You can also set the file extension used by HM for your topic files in Configuration > Publishing Options > WebHelp > HTML Export Options. :)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
dcraggs
Posts: 20
Joined: Thu Oct 26, 2006 2:58 pm

Re: Webhelp

Unread post by dcraggs »

Ah thanks didn't spot that. But my solution works, especially as I can protect pdf files as well.

Thanks

Dave
Post Reply