Disable chunking in Mobile output

Post here questions and problems related to editing and publishing DITA content.
pault
Posts: 70
Joined: Thu Mar 21, 2013 12:55 am

Disable chunking in Mobile output

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Disable chunking in Mobile output

Post 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
pault
Posts: 70
Joined: Thu Mar 21, 2013 12:55 am

Re: Disable chunking in Mobile output

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Disable chunking in Mobile output

Post 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
Post Reply