Forums / Setup & design / Different templates between pagelayout and print_pagelayout

Different templates between pagelayout and print_pagelayout

Author Message

Børge Warvik

Friday 26 May 2006 1:15:39 am

Hi

How can I get different template for "node/view/full.tpl" between pagelayout.tpl and print_pagelayout.tpl?

I'm not sure about the rules for this in the override...

Kristof Coomans

Friday 26 May 2006 1:56:59 am

Hi Børge

I think you can use Match["layout"]=print, because "layout" is set as a design key in the layout/set view (kernel/layout/set.php).

Let us know if it worked.

Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Børge Warvik

Friday 26 May 2006 2:41:04 am

Hi

Tried this:

[treatment_form_full_print]
Source=node/view/full.tpl
MatchFile=full/treatment_form_print.tpl
Subdir=templates
Match[class_identifier]=treatment_form
Match["layout"]=print

[treatment_form_full]
Source=node/view/full.tpl
MatchFile=full/treatment_form.tpl
Subdir=templates
Match[class_identifier]=treatment_form

If I haven't done anything wrong it didn't work :( Any other ideas?

Marcin Drozd

Friday 26 May 2006 2:59:23 am

Hi Børge
It works with
Match[layout]=print
not with
Match["layout"]=print

http://ez-publish.pl

Børge Warvik

Friday 26 May 2006 3:45:48 am

That worked!

Great thanks!

Kristof Coomans

Friday 26 May 2006 10:34:57 am

It works with
Match[layout]=print
not with
Match["layout"]=print

Sorry, my mistake :-)

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org