Search found 161 matches

by alin
Wed May 13, 2020 5:41 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Child links in tiles
Replies: 1
Views: 144

Re: Child links in tiles

Hi Syed, By design the tiles component contains only entries for the first level topics. If you want to customize it in order to display the child topics you have to contribute an XSLT extension file that overrides the built-in template that generates each tile. You can use the following XSLT snippe...
by alin
Thu Apr 30, 2020 6:57 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Getting topic count as a JavaScript variable in WebHelp output
Replies: 1
Views: 174

Re: Getting topic count as a JavaScript variable in WebHelp output

Hello, You can use the map-xpath WebHelp Macro to execute an XPath expression on the DITA map and count all the topicrefs . You can contribute your custom content using an HTML Fragment file, like the one below: <?xml version="1.0" encoding="UTF-8"?> <div xmlns:whc="http://www.oxygenxml.com/webhelp/...
by alin
Mon Apr 27, 2020 11:30 am
Forum: Other Issues
Topic: Can I / How to remove "Webhelp output generated by"
Replies: 12
Views: 4290

Re: Can I / How to remove "Webhelp output generated by"

Hello, There is no available setting that disables the footer of a page. However, if you want to remove the default content of the footer section, you can set the webehelp.fragment.footer parameter to " " or to "<span/>". In order to hide the footer entirely you should add a custom CSS rule to your ...
by alin
Wed Apr 22, 2020 8:23 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: add custom js in search pages
Replies: 2
Views: 161

Re: add custom js in search pages

Hello, The recommended procedure for inserting additional content in your output files is via HTML fragment files and it is described here: https://www.oxygenxml.com/doc/versions/22.0/ug-webhelp-responsive/topics/wh-add-custom-html.html There are no specific placeholders for the Search Page. However...
by alin
Tue Mar 10, 2020 12:23 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Adding logo to the search bar
Replies: 1
Views: 174

Re: Adding logo to the search bar

Hy Syed, You can use an XSLT extension file to alter the HTML structure generated for the Search component. For example, the XSLT extension file may look as follows: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:whc="http://www.oxy...
by alin
Wed Feb 26, 2020 10:36 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive Webhelp: include bookmap xml:lang value to footer of main page
Replies: 7
Views: 794

Re: Responsive Webhelp: include bookmap xml:lang value to footer of main page

Hello, The Macro Component can be used to execute a single XPath expression. There is no limit on how complex the expression is. My guess is a wh:macro is easier to use for basic customization, but for more complex conditions, an XSLT extension will work better. Yes, you are right. It was developed ...
by alin
Mon Feb 17, 2020 6:46 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Integrating two webhelp outputs
Replies: 3
Views: 196

Re: Integrating two webhelp outputs

Hello, Correct me if i am wrong, is the expectation that the doc source for both the products should reside in the same repository? Yes, you are right. Although this would be the ideal solution for the use case you have described in your first post, it is not necessary that you store both of your pr...
by alin
Fri Feb 14, 2020 1:49 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Integrating two webhelp outputs
Replies: 3
Views: 196

Re: Integrating two webhelp outputs

Hello, You could use a third DITA Map (supermap) that includes the maps for each product. For example: <map> <title>SuperMap</title> <topicref href="publication-A-dir/a.ditamap" format="ditamap"/> <topicref href="publication-B-dir/b.ditamap" format="ditamap"/> </map> Afterwards you can publish the s...
by alin
Fri Feb 14, 2020 12:57 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Multiple levels of menu in Webhelp Responsive Tree
Replies: 1
Views: 201

Re: Multiple levels of menu in Webhelp Responsive Tree

Hello, Here is a quick solution for the content structure generation part: You can use an XSLT extension file inside your current Publishing Template to override the default structure of the TOC component from the main page. The XSLT extension file should contain: <?xml version="1.0" encoding="UTF-8...
by alin
Mon Feb 03, 2020 5:27 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: WebHelp XSLT: Display metadata as visible content
Replies: 7
Views: 1833

Re: WebHelp XSLT: Display metadata as visible content

Hello, https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/whr_publishing_template_contents.html says "To add new macros, you can add an XSLT extension to overwrite the wh-macro-extension template from the com.oxygenxml.webhelp.responsive\xsl\template\macroExpander.xsl file." The above stat...
by alin
Mon Feb 03, 2020 11:40 am
Forum: Other Issues
Topic: Add text in welcome page
Replies: 6
Views: 454

Re: Add text in welcome page

Hello, You can achieve this by using the localization support from WebHelp. You should follow the procedure described here: https://www.oxygenxml.com/doc/versions/21.1/ug-webhelp-responsive/topics/localize-webhelp-responsive.html?hl=localization#ariaid-title2 and add a localization entry for your we...
by alin
Thu Jan 30, 2020 4:25 pm
Forum: Other Issues
Topic: Add text in welcome page
Replies: 6
Views: 454

Re: Add text in welcome page

Hello,

Do you want the text you are inserting in the welcome page to be translated according to the current language of your publication?

Regards,
Alin
by alin
Fri Jan 24, 2020 4:33 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive Webhelp: include bookmap xml:lang value to footer of main page
Replies: 7
Views: 794

Re: Responsive Webhelp: include bookmap xml:lang value to footer of main page

Hello, Is there a way to show the default value (en) if the xml:lang attribute is empty? You can use the following content in the HTML fragment file: <div xmlns:whc="http://www.oxygenxml.com/webhelp/components"> Publication Language: <b><whc:macro value="${map-xpath(if (/*/@*:lang) then /*/@*:lang e...
by alin
Fri Jan 17, 2020 10:46 am
Forum: Other Issues
Topic: Add text in welcome page
Replies: 6
Views: 454

Re: Add text in welcome page

Hello, You can use the " webhelp.fragment.welcome " HTML Fragment extension point. You can find more information in our User Manual about Inserting Custom HTML content in the WebHelp Responsive output: https://www.oxygenxml.com/doc/versions/21.1/ug-webhelp-responsive/topics/wh-add-custom-html.html R...
by alin
Wed Jan 08, 2020 11:36 am
Forum: Other Issues
Topic: WebHelp topic tooltip shows garbled text
Replies: 1
Views: 207

Re: WebHelp topic tooltip shows garbled text

Hello, This is a known issue which has already been resolved in the upcoming version. To overcome this problem you can use the following custom CSS rule in your WebHelp output: .wh-tooltip-container .wh-tooltip, .wh_breadcrumb .topicref .wh-tooltip, .wh_publication_toc .topicref .wh-tooltip { displa...
by alin
Thu Dec 12, 2019 5:23 pm
Forum: Other Issues
Topic: How to fix this "elements must consist of well-formed character data"?
Replies: 1
Views: 526

Re: How to fix this "elements must consist of well-formed character data"?

Hello,

In order to avoid XML well-formedness errors you should wrap the JavaScript content of the <script> element using XML Comment markup.
For example:

Code: Select all

<script>
  <!-- 
     
     [Place your Javascript here]
  
  -->
</script>


Regards,
Alin
by alin
Tue Dec 10, 2019 7:46 pm
Forum: Common Problems
Topic: shortdesc formatting in WebHelp tooltips - broken?
Replies: 3
Views: 261

Re: shortdesc formatting in WebHelp tooltips - broken?

Hello, The issue can be fixed by including the following CSS snippet into your generated output: .wh-tooltip-container .wh-tooltip, .wh_breadcrumb .topicref .wh-tooltip, .wh_publication_toc .topicref .wh-tooltip { display: block; } The procedure of using CSS to customize the output is described in o...
by alin
Fri Dec 06, 2019 2:54 pm
Forum: Other Issues
Topic: localStorage == null in wh_topic page
Replies: 2
Views: 303

Re: localStorage == null in wh_topic page

Hello, Can you please give us more details about your customization. More specifically, how did you include the JS that retrieves the data from local storage in your output files? Are there any JS errors the browser's console? Also, we would need to know which version of Webhelp are you using. Regar...
by alin
Fri Nov 15, 2019 7:35 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS files associated with referenced HTML files are not being pulled into WebHelp output
Replies: 1
Views: 265

Re: CSS files associated with referenced HTML files are not being pulled into WebHelp output

Hello, You can use the webhelp.custom.resources parameter and set it to the path of a directory containing the resources that you want to copy to the output folder. All the resources will be copied to the root directory of the Webhelp output. Please see the Copying Additional Resources to the Output...
by alin
Tue Nov 12, 2019 4:33 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive Webhelp: spaces between different keyword in output
Replies: 1
Views: 233

Re: Responsive Webhelp: spaces between different keyword in output

Hello, You need to adjust your XPath expression in order to concatenate all keywords using a space as separator: <div class="keywords" xmlns:whc="http://www.oxygenxml.com/webhelp/components"> <p>Keywords: <b><whc:macro value="${topic-xpath(string-join(//keyword, ' '))}"/></b></p> </div> Regards, Alin
by alin
Wed Oct 23, 2019 11:14 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Image in title tag shows abruptly in the webhelp nav
Replies: 1
Views: 185

Re: Image in title tag shows abruptly in the webhelp nav

Hello,

Thank you for reporting this issue. I have logged it in our system and a fix will be available in the next Webhelp release.


Regards,

Alin
by alin
Tue Aug 27, 2019 12:38 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add metadata from DITA map to menu items in HTML output
Replies: 2
Views: 364

Re: Add metadata from DITA map to menu items in HTML output

With the XPath command map/topicref/topicref/topicmeta/audience/@type it is possible to get the desired result, namely "expert". When I try to achieve the same within sidetoc.xsl with //toc:toc/toc:topic/toc:topic/toc:topicmeta/toc:audience/@type I get the @type values from parents and siblings, to...
by alin
Wed Jul 31, 2019 4:32 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Responsive Webhelp: include bookmap xml:lang value to footer of main page
Replies: 7
Views: 794

Re: Responsive Webhelp: include bookmap xml:lang value to footer of main page

Hello, You can add custom HTML content in the WebHelp Responsive output by inserting it in a well-formed XML file that will be referenced in the transformation (either from an Oxygen Publishing Template or using one of the HTML fragment parameters ). The XML file can use WebHelp macros, which are va...
by alin
Fri Jul 26, 2019 9:41 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Webhelp Responsive - svg.dita.indexterms error
Replies: 3
Views: 814

Re: Webhelp Responsive - svg.dita.indexterms error

Hello,

We managed to reproduce the issue on our side and I have logged it in our issue tracking system.
We will let you know when a solution is available.

Regards,
Alin
by alin
Tue May 21, 2019 5:48 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: 21.0 Webhelp Responsive foorer not centered
Replies: 2
Views: 421

Re: 21.0 Webhelp Responsive foorer not centered

Hello, It seems that you are using a custom publishing template that was created starting from one of the templates in v. 20.1 or older. If your custom publishing template contains Custom HTML Page Layout Files please use the following procedure in our User Manual to update the layout files to versi...
by alin
Mon Mar 04, 2019 5:35 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Check condition in topic-xpath macro
Replies: 4
Views: 885

Re: Check condition in topic-xpath macro

Hello, Did you manually copy the HTML Page Layout Files (HTML page templates) in your custom template? If yes, I suppose that you have omitted two additional files that are referenced from the page layout files. These are header.xml and footer.xml and they are not optional. Can you please check that...
by alin
Fri Mar 01, 2019 3:52 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Check condition in topic-xpath macro
Replies: 4
Views: 885

Re: Check condition in topic-xpath macro

Hello,

Can you please try to use the following fragment:

Code: Select all


<whc:macro value="${topic-xpath(if (normalize-space(string-join((//attribute::product), '')) != '') then string-join(('Note: The feature described above is available from release' , //attribute::product), ' ') else '')}"/>
Regards,
Alin
by alin
Fri Jan 18, 2019 4:14 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customizing WebHelp Responsive header
Replies: 4
Views: 1090

Re: Customizing WebHelp Responsive header

Hello, You can retrieve metedata info from your input map using the macros template components: https://www.oxygenxml.com/doc/versions/20.1/ug-webhelp-responsive/topics/wh-add-custom-html.html#wh-add-custom-html__using_webhelp_macros_inside_a_html_fragment_file. You can add content before and after ...
by alin
Tue Jan 08, 2019 12:25 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: WebHelp Responsive transform causes java.io.FileNotFoundException
Replies: 3
Views: 963

Re: WebHelp Responsive transform causes java.io.FileNotFoundException

Hello,

Thank you for reporting this issue. I managed to reproduce the problem and I have logged it in our issue management system to be analyzed (ticket ID: WH-2115).

Regards,
Alin
by alin
Thu Oct 18, 2018 8:27 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: WebHelp XSLT: Display metadata as visible content
Replies: 7
Views: 1833

Re: WebHelp XSLT: Display metadata as visible content

Hello, I think that the Publishing Template's macros mechanism might help you. The macros are variables that you can use in the HTML Layout Files (https://www.oxygenxml.com/doc/versions/20.1/ug-editor/topics/whr_publishing_template_contents.html#ariaid-title4) or in the HTML Fragment Files (https://...