[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {* DO NOT EDIT THIS FILE! Use an override template instead. *} 2 {* Default template for generating PDFs from content node. *} 3 4 {let content_version=$node.contentobject_version_object 5 node_name=$node.name 6 children=fetch(content, list, hash( parent_node_id, $node.node_id, 7 sort_by, $node.sort_array ) ) } 8 9 {section show=$pdf_root_template|eq(1)} 10 {pdf(pageNumber, hash( identifier, "main", 11 start, 1 ) )} 12 {/section} 13 14 {pdf(header, hash( level, 1, 15 text, $node_name|wash(pdf), 16 size, 26, 17 align, left ) )} 18 19 {section name=ContentObjectAttribute loop=$content_version.contentobject_attributes} 20 {attribute_pdf_gui attribute=$ContentObjectAttribute:item} 21 {pdf(newline)} 22 {/section} 23 24 {section show=$tree_traverse|eq(1)} 25 {section name=Child loop=$children} 26 {section show=$class_array|contains($Child:item.object.contentclass_id)} 27 {node_view_gui view=pdf content_node=$Child:item tree_traverse=$tree_traverse class_array=$class_array} {* Calls node/view/pdf.tpl *} 28 {/section} 29 {/section} 30 {/section} 31 32 {/let} 33 34 {section show=$pdf_root_template|eq(1)} 35 {* {pdf(createIndex)} *} {* Index is based on the keyword datatype, and is not used in most setups *} 36 {pdf(pageNumber, hash( identifier, "main", 37 stop, 1 ) )} 38 39 {include uri="design:content/pdf/footer.tpl"} 40 {/section} 41 42 {* Insert frontpage *} 43 {section show=$show_frontpage|eq(1)} 44 {pdf(frontpage, hash( text, $intro_text|wash(pdf), 45 align, center, 46 size, 20, 47 top_margin, 200 ) )} 48 {pdf(frontpage, hash( text, $sub_intro_text|wash(pdf), 49 align, center, 50 size, 14, 51 top_margin, 400 ) )} 52 {/section} 53 54 {* generate_toc variable is only set in namespace of first instance of pdf.tpl called *} 55 {section show=$generate_toc|eq(1)} 56 {include uri="design:content/pdf/toc.tpl"} 57 {/section} 58
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |