Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-33241

Please add a class specifying the resulting heading level of the title of the page to the div.wiki-content element

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Page - Export
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      Now it is impossible to add multilevel numbering to the page headings in multipage PDF export.
      It is because of enclosing page's heading elements (that may be demoted to h1,h2,h3,...h7 during page hierarchy building when exporting) into the div.wiki-content > div.pagetitle.
      That's why calling smth. like h1

      { counter-reset: h1-title; }

      has no meaning because it will create a new instance of h1-title counter in the parent element div.wiki-content > div.pagetitle and will be popd after it is closed. And when a new div.wiki-content element (a new page) will be opened there will be a untouched counter value.

      Please add a class to the div.wiki-content element that can classify the heading level (h1,h2,..h7) of the page title of the enclosed content (actually it will be enaught to copy the name of the type of the first child of the div.wiki-content > div.pagetitle element).

      Something like this:

      <div class="wiki-content h1">
      <div class="pagetitle" id="Main topic">
      <h1>Main topic</h1>
      ....
      </div>
      </div>
      <div class="hidden rendered-page"></div>
      <div class="wiki-content h2">
      <div class="pagetitle" id="Subpage title">
      <h2>Subpage title</h2>

      You can check the difference in this JS Fiddle: http://jsfiddle.net/9pJdS/4/ (see the css to point the feature use)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              2f7bb2628c76 Aleksandr Vinokurov
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: