Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-5396

[Export PDF] : The table of contents is not displayed

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.4.7, 3.5.5, 3.7, 3.9
    • 3.7
    • None
    • None

      1. CMS_PDFExport_handle_toc.patch
        6 kB
      2. HTMLvsPDF.png
        HTMLvsPDF.png
        235 kB
      3. HTMLvsPDF2.jpg
        HTMLvsPDF2.jpg
        496 kB
      4. KO.png
        KO.png
        89 kB
      5. TOC-counters.PNG
        TOC-counters.PNG
        20 kB

        [CMS-5396] [Export PDF] : The table of contents is not displayed

        Laurence Aumeunier made changes -
        Status Original: Resolved [ 5 ] New: Closed [ 6 ]
        Laurence Aumeunier made changes -
        Resolution New: Fixed [ 1 ]
        Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
        Laurence Aumeunier made changes -
        Attachment New: TOC-counters.PNG [ 15932 ]

        Table of content with CSS counters

        Laurence Aumeunier added a comment - Table of content with CSS counters

        Laurence Aumeunier added a comment - - edited

        In HTML nested ordered list can be done in css with counters (CSS 2.1 specifications, not supported for IE7 and lower )

        .ametys-cms-content ol.nested {
            counter-reset: section;                
            list-style-type: none;
        }
        
        .ametys-cms-content ol.nested ol {
        	margin: 0 0 0 2em;
        }
        
        .ametys-cms-content ol.nested li:before {
            counter-increment: section;            
            content: counters(section, ".") ". ";  
        }
        

        Laurence Aumeunier added a comment - - edited In HTML nested ordered list can be done in css with counters (CSS 2.1 specifications, not supported for IE7 and lower ) .ametys-cms-content ol.nested { counter-reset: section; list-style-type: none; } .ametys-cms-content ol.nested ol { margin: 0 0 0 2em; } .ametys-cms-content ol.nested li:before { counter-increment: section; content: counters(section, "." ) ". " ; }
        Laure Lopez made changes -
        Attachment New: HTMLvsPDF2.jpg [ 15927 ]
        Laure Lopez made changes -
        Resolution Original: Fixed [ 1 ]
        Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

        Laure Lopez added a comment -

        The counting format of the web page is different than this one of the PDF. See the screenshot HTMLvsPDF2.

        Laure Lopez added a comment - The counting format of the web page is different than this one of the PDF. See the screenshot HTMLvsPDF2.
        Laurence Aumeunier made changes -
        Fix Version/s New: 3.9 [ 11927 ]
        Laurence Aumeunier made changes -
        Resolution New: Fixed [ 1 ]
        Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

          quentin Quentin Glinel-Mortreuil (Inactive)
          lperier Laurence Perier
          Votes:
          1 Vote for this issue
          Watchers:
          3 Start watching this issue

            Created:
            Updated:
            Resolved: