Page 1 of 1

Disable chunking in Mobile output

Posted: Fri Sep 20, 2013 7:06 pm
by pault
I really like the Mobile scenario. Unfortunately chunk to-content isn't processed in the Mobile scenario and content is missing. As a workaround, we are using separate ditamaps for mobile output, but it's kind of a pain. Is there away to disable chunking in the mobile processing?

Thanks,

Paul

Re: Disable chunking in Mobile output

Posted: Wed Sep 25, 2013 12:46 pm
by sorin_ristache
Hi Paul,

In the current version (15.0) and the next one (15.1) it is not possible to disable chunking in the Webhelp - Mobile output. The Mobile transformation always generates one XHTML page for each Table of Contents entry, to keep the navigation on mobile devices simple and easy. I think generally it is considered a good idea to keep the mobile pages small for easy mobile navigation.

Please can you give us some details about your content and how merging some topics together in the output would improve the navigation/mobile experience?


Thank you,
Sorin

Re: Disable chunking in Mobile output

Posted: Mon Sep 30, 2013 11:34 pm
by pault
Hi Sorin,

I think I misspoke about what I wanted.

Currently, in our WebHelp implementation, we use the chunk="to-content" attribute quite a bit in our ditamaps. For example:

Code: Select all

<topicref href="partitionerAbout.dita" keys="architecturePartitionerAbout" chunk="to-content">
<topicref href="partitionerM3P.dita" keys="architecturePartitionerM3P"/>
<topicref href="partitionerRandom.dita" keys="architecturePartitionerRandom"/>
<topicref href="partitionerBOP.dita" keys="architecturePartitionerBOP"/>
</topicref>
Mobile help doesn't like that and it makes sense for the very reasons you stated. Right now we have to use separate ditamaps for mobile. The maps are identical except that we have removed all the chunk="to-content" attributes. Continuing with the above example:

Code: Select all

<topicref href="partitionerAbout.dita" keys="architecturePartitionerAbout">
<topicref href="partitionerM3P.dita" keys="architecturePartitionerM3P"/>
<topicref href="partitionerRandom.dita" keys="architecturePartitionerRandom"/>
<topicref href="partitionerBOP.dita" keys="architecturePartitionerBOP"/>
</topicref>
I was wondering if there was some way to simply have the mobile processing ignore the chunk="to-content" attributes so that we wouldn't have to maintain two separate ditamaps for the same content.

Thanks,

Paul

Re: Disable chunking in Mobile output

Posted: Thu Oct 03, 2013 4:48 pm
by sorin_ristache
Hi Paul,

There is no way of ignoring the chunk attribute in the current version. We will fix this problem in one of the future versions. The problem is in the links to the topic content generated in the Webhelp-Mobile output, not in applying the chunk attribute. We will correct the links in the Webhelp-Mobile output, to allow you to use any value that you want for the chunk attribute in the map.

For now as a workaround for you please remove the chunk attribute from the DITA map when you run the Webhelp-Mobile transformation. This should be the only difference that you need to make between the Webhelp desktop transformation and the Webhelp-Mobile one.


Regards,
Sorin