• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can I set page scrolling option for all files in a Ditamap?

Explorer ,
Nov 09, 2023 Nov 09, 2023

Copy link to clipboard

Copied

I have a ditamap containing about 30 referenced topics. I can open all files in the ditamap, but I want to adjust the page scrolling view option so that pages are vertical (not side by side). How can I do this for multiple topic files at once???

  • In unstructured framemaker, you can select files and go to View/Options and set the page scrolling preference for all selected files with one click. 
  • In a Ditamap, though, this View-Options command is available only for each separate dita topic file (not for multiple selected ones and not for the ditamap), which means I have to open each topic file and set each file's page scrolling preference separately. Clearly this is not a doable workflow (and we expect to have much larger ditamaps in future.)

What's the trick???

Views

114

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 09, 2023 Nov 09, 2023

Copy link to clipboard

Copied

I do not use DITA. Therefore my suggestion might be wrong.

I would recommend to set this in the template file. Possibly this will be used automatically or you would have to import this format into your topic files.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 09, 2023 Nov 09, 2023

Copy link to clipboard

Copied

Winfried is correct; you need to set this in your topic templates so that whenever you open a topic from the map, you will get the desired view.

 

In the meantime, here is a simple script you can use that will change the setting on all of your open documents. To use it, copy the code and paste it into a plain text file and save it with a .jsx extension. Open all of your topics, and choose File > Script > Run and select the script. Alternatively, choose File > Script > Library and add the script to the Script Catalog and run it from there.

 

#target framemaker

main ();

function main () {
    
    var doc;
    
    // Loop through the open documents.
    doc = app.FirstOpenDoc;
    while (doc.ObjectValid () === 1) {
        // Set the page scrolling to vertical.
        doc.ViewPageScrolling = Constants.FV_SCROLL_VERTICAL;
        doc = doc.NextOpenDocInSession;
    }
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 03, 2024 May 03, 2024

Copy link to clipboard

Copied

LATEST

Thanks Rick...you always come up with a perfect piece of code just when I need it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 14, 2023 Nov 14, 2023

Copy link to clipboard

Copied

Thanks so much for your prompt and precise assistance!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines