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)
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!