Forums / Setup & design / Different templates between pagelayout and print_pagelayout
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
Friday 26 May 2006 2:41:04 am
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 withMatch["layout"]=print
http://ez-publish.pl
Friday 26 May 2006 3:45:48 am
That worked!
Great thanks!
Friday 26 May 2006 10:34:57 am
It works with Match[layout]=print not with Match["layout"]=print
Sorry, my mistake :-)