简体   繁体   English

eZ Publish模板创建

[英]eZ Publish template creation

I'm trying to add a new template (.tpl) file to an existing design for a company. 我正在尝试将新模板(.tpl)文件添加到公司的现有设计中。 It is fairly basic: 这是相当基本的:
* New page with iFrame that can be controlled from admin. *带有iFrame的新页面,可以通过管理员进行控制。
* Add new CSS to the new file that will either overwrite existing CSS or add to template. *将新CSS添加到新文件中,该新文件将覆盖现有CSS或添加到模板中。

I have tried to find reference to where I should place such a template and how to add it to an existing design, and the only reference I find is how to make a new design. 我试图找到关于应在何处放置此类模板以及如何将其添加到现有设计中的参考,而我发现的唯一参考是如何进行新设计。 In addition I cannot fully (or at all) understand the catalogue structure. 另外,我无法完全(或根本)不了解目录结构。

As I see it I should add a new extension. 如我所见,我应该添加一个新的扩展名。 Anybody have some pointers that are step by step regarding this issue? 有人针对此问题有逐步的指示吗?

Not to mention - is this the right place to ask for this? 更不用说-这是问这个的正确地方吗?

You will get a much better traction on the eZ Publish Community Portal, there : http://share.ez.no . 在eZ Publish社区门户上,您会获得更好的吸引力: http : //share.ez.no Ask your question in the forums : http://share.ez.no/forums 在论坛中提问: http : //share.ez.no/forums

See you there, Cheers, 在那里见,干杯,

I guess you could create an object of the class "Link" in your admin. 我猜您可以在管理员中创建“链接”类的对象。 The link url would be the url of your iframe. 链接网址就是您iframe的网址。 Then, in your design folder, in override/templates folder, you could create an iframe.tpl file, and tell in override.ini.append.php you want to override the node/view/full.tpl template, normally used to view a node, with your iframe.tpl, only for that Link node you would have created. 然后,在设计文件夹中的override / templates文件夹中,可以创建一个iframe.tpl文件,并在override.ini.append.php中告诉您要覆盖通常用于查看的node / view / full.tpl模板。使用iframe.tpl的节点,仅针对您将创建的那个Link节点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM