Zmeny dokumentu CustomPDFTemplate

Naposledy upravil Admin MetaIS 2025/04/02 10:11

Z verzie 2.1
upravil Admin MetaIS
-
Zmeniť komentár: Pre túto verziu nie sú komentáre
Do verzie 4.1
upravil Admin MetaIS
-
Zmeniť komentár: Pre túto verziu nie sú komentáre

Súhrn

Podrobnosti

XWiki.PDFExport.TemplateClass[0]
Metadata
... ... @@ -1,0 +1,5 @@
1 +{{velocity output="false"}}
2 +$metadata.putAll({
3 + 'data-tags': $stringtool.join($doc.getTagList(), ', ')
4 +})
5 +{{/velocity}}
Footer
... ... @@ -1,3 +1,6 @@
1 1  {{html clean="false"}}
2 -<span class="pdf-page-number"></span> / <span class="pdf-page-count"></span>
2 +<div>Tags: <span class="pdf-chapter-tags"></span></div>
3 +<div>
4 + <span class="pdf-page-number"></span> / <span class="pdf-page-count"></span>
5 +</div>
3 3  {{/html}}
XWiki.StyleSheetExtension[1]
Caching politika
... ... @@ -1,0 +1,1 @@
1 +long
Kód
... ... @@ -1,0 +1,10 @@
1 +h1[data-xwiki-document-reference] {
2 + /* Define a string "variable" with the value of the metadata. */
3 + /* See https://www.w3.org/TR/css-gcpm-3/#setting-named-strings-the-string-set-pro */
4 + string-set: chapter-tags attr(data-tags);
5 +}
6 +.pdf-chapter-tags:before {
7 + /* Display the value of the previously defined variable in the PDF footer. */
8 + /* See https://www.w3.org/TR/css-gcpm-3/#using-named-strings */
9 + content: string(chapter-tags);
10 +}
Použiť toto rozšírenie
... ... @@ -1,0 +1,1 @@
1 +onDemand
Parsovať obsah
... ... @@ -1,0 +1,1 @@
1 +Nie
Content Type
... ... @@ -1,0 +1,1 @@
1 +CSS