eZ Publish 模板创建
我正在尝试将新模板 (.tpl) 文件添加到公司的现有设计中。这是相当基本的:
* 带有 iFrame 的新页面,可以从管理员控制。
* 将新的 CSS 添加到新文件中,这将覆盖现有 CSS 或添加到模板中。
我试图找到关于应该在哪里放置这样的模板以及如何将其添加到现有设计的参考,而我找到的唯一参考是如何进行新设计。此外,我无法完全(或根本)理解目录结构。
据我所知,我应该添加一个新的扩展。有人对这个问题有一些逐步的指示吗?
更不用说 - 这是要求这个的正确地方吗?
I'm trying to add a new template (.tpl) file to an existing design for a company. It is fairly basic:
* New page with iFrame that can be controlled from admin.
* Add new CSS to the new file that will either overwrite existing CSS or add to template.
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您将在 eZ Publish 社区门户网站上获得更好的关注:http://share.ez.no 。在论坛中提出您的问题:http://share.ez.no/forums
再见,
干杯,
You will get a much better traction on the eZ Publish Community Portal, there : http://share.ez.no . Ask your question in the forums : http://share.ez.no/forums
See you there,
Cheers,
我想您可以在管理员中创建“Link”类的对象。链接 url 将是您的 iframe 的 url。然后,在您的设计文件夹中的 override/templates 文件夹中,您可以创建一个 iframe.tpl 文件,并在 override.ini.append.php 中告诉您要覆盖通常用于查看的 node/view/full.tpl 模板一个节点,与您的 iframe.tpl 一起,仅用于您要创建的链接节点。
I guess you could create an object of the class "Link" in your admin. The link url would be the url of your 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.