Page 1 of 1

customize Webhelp Responsive home page

Posted: Wed Mar 13, 2019 6:01 am
by catherine
Hi, I want to display the wh_publication_toc on the home page, and adjust the layout of wh-titles .
How to achieve that ?
For now, I have a customized css file. I don't know how to display wh_publication_toc on the home page.

Will appreciate for your help.

Thanks and Regards
Catherine

Re: customize Webhelp Responsive home page

Posted: Thu Mar 14, 2019 5:56 pm
by Costin
Hi Catherine,

Unfortunately, there is no easy way to include the "wh_publication_toc" in the main page using the current implementation of WebHelp Responsive.
However, we already have an improvement logged in our internal improvements tracking system, to offer the possibility to make the WebHelp Responsive output and layout look like the deprecated WebHelp Classic, so I just added your feedback to it.

We will notify this thread when this will get implemented.

Regards,
Costin

Re: customize Webhelp Responsive home page

Posted: Fri Mar 15, 2019 4:04 am
by catherine
Hi, Costin,
Thanks for your feedback.

Regards,
Catherine

Webhelp: Add publicatio TOC to home page

Posted: Wed May 29, 2019 6:43 pm
by Frank Ralf
Hi Costin,

My thumbs-up as well for such a feature because our customer wants the complete publication TOC to show on all pages (index, topic, search).

I've tried copying the <whc:webhelp_publication_toc> section from the wt_topic.html template to the wt_index.html template. The container <nav> element is created but without any TOC content.

Looking at com.oxygenxml.webhelp.responsive/xsl/template/topicComponentsExpander.xsl it seems that no side TOC is generated, probably because no temporary .sidetoc file has been created yet when the index file is processed because at that stage there is no real topic to process yet.

Would it be possible to inject the side TOC into the index.html file in a post-processing stage?

Best regards,
Frank

Re: customize Webhelp Responsive home page

Posted: Tue Jun 04, 2019 12:01 pm
by radu_pisoi
Hi,

The whc:webhelp_publication_toc component is available only for the Topic Page page layout. It is not expanded if you use it in other HTML page layout files.

I will register an improvement in our issue tracker to make it available in other pages.

There is a workaround to skip the main page generation, so the output will display the first content topic as main page. This workaround implies some changes in the WebHelp Responsive code. If you are interested for it, please contact us at support@oxygenxml.com.

Re: customize Webhelp Responsive home page

Posted: Tue Jun 04, 2019 1:05 pm
by Frank Ralf
Hi Radu,

Many thanks for your reply. Making the whc:webhelp_publication_toc component available for other pages would be appreciated.

We will consider your suggested workaround and get back to you if necessary.

Kind regards,
Frank