Normally it will return the full view of your node (or it's override)
Consultant Ez Publish- Sapiens Consulting
Roberto Sacchi
Wednesday 11 February 2009 7:31:34 am
It works, but the problem is that I lost all css and image links in the output file. The pagelayout.tpl is not included in the fetching (when I load node from ezpub, it's included)
How to do resolve it?
Roberto Sacchi
Wednesday 11 February 2009 7:58:58 am
I forget to ask you where have you found information about your code:
When do you read that you can pass a node as variable? Probably I miss some important documentation.....
Ousmane KANTE
Thursday 12 February 2009 7:11:03 am
You can use this "syntaxe" to add variable you want to use in your template.
as a node/view/[your_view].tpl, requires <i>$node</i> variable, you should be sur to have set it as tpl variable ...
if your template requires other variable(s), you can set it(them) as above... For exemple, your css if you want to include them in node_view.
according to function definition and you can look at sample code in extensions such as ezdhtml (Online Editor).
Or you can take a look in kernel\content\view.php, and see that it is a bit more complex then this. But the code is reusable so a call like this will be enough to generate the whole $Result variable, and using the override system as well (the code above does not):
Of course this only displays the contents of the full template. Does anybody know how to add the pagelayout.tpl code?
Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.
You must be logged in to post messages in this topic!