Forums / Setup & design / Trouble with print_pagelayout.tpl

Trouble with print_pagelayout.tpl

Author Message

Pascal France

Friday 16 June 2006 5:25:31 am

Hi,

I did an override of print_pagelayout.tpl for an additional private siteaccess:

  9 [impression_cv]
 10 Source=print_pagelayout.tpl
 11 MatchFile=impression/print_pagelayout_cv.tpl
 12 Subdir=templates
 13 Match[node]=1027

If I clear all caches of this siteaccess I can display the print version of my document. With debug option I get:

design/linuxorable_assoc/override/templates/impression/print_pagelayout_cv.tpl
design/standard/templates/page_head.tpl
design/standard/templates/link.tpl
design/linuxorable_assoc/override/templates/impression/page_mainareaaaa.tpl
design/standard/templates/page_warning.tpl
extension/fckeditor/design/standard/templates/content/datatype/view/ezxmltags/literal.tpl

and below this last line the document is displayed.
But if I try to display the print version of this document another time, the document is no more displayed and the debug output is:

design/linuxorable_assoc/override/templates/impression/print_pagelayout_cv.tpl
design/standard/templates/page_head.tpl
design/standard/templates/link.tpl
design/linuxorable_assoc/override/templates/impression/page_mainareaaaa.tpl
design/standard/templates/page_warning.tpl

so the last:
extension/fckeditor/design/standard/templates/content/datatype/view/ezxmltags/literal.tpl

line is missing.
Once the print version is displayed, if I reload the page, the document disappears ! Then, to be able to display the print version, I have to clear caches.

With my default public siteaccess, I have not this trouble.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Friday 16 June 2006 5:34:07 am

Sorry,

I forgot to tell I changed the content of page_mainareaaaa.tpl
By default, page_mainarea.tpl contains:

{$module_result.content}

but this displays some things I don't want to print. Therefore I changed my page_mainareaaaa.tpl with:

<div class="content-view-full">
    <div class="class-article">

{section}
{def $user_current=fetch( 'user', 'current_user' )
     $url_site=""
}

{/section}

        {section show=$node.object.data_map.description.content.is_empty|not}
            <div class="cadre_sup">
            </div>
            <div class="cadre">
            <div class="attribute-long">
                {attribute_view_gui attribute=$node.object.data_map.description}
            </div>
            </div>
            <div class="cadre_inf">
            </div>
        {/section}
    </div>
</div>

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Friday 16 June 2006 6:25:17 am

Hi,

To be more clear about my problem, if I use the default page_mainarea.tpl and when I display my document I can see:

http://www.linuxorable.net/temp/image/impression_1.png

and once I click on the print icon, I can see the print page:

http://www.linuxorable.net/temp/image/impression_2.png

In the source code of the print page I can see that the content showed by impression_2.png is the view of the article/full.tpl

But how can I remove this:

http://www.linuxorable.net/temp/image/impression_3.png

from the print page ? (It's for that I changed the content of my page_mainareaaaa.tpl)

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish