TYPO3:后端模块和前端插件的扩展
我正在尝试创建一个带有后端模块和前端插件的扩展(“XML Uploader”)。
后端模块将用于管理 xml 文件(上传、根据 DTD 进行验证),前端插件应用于显示上传的 xml。
问题出在前端部分: 我跟着 基本扩展教程 - 添加了一个新页面,创建了“插入插件”类型的内容元素 - 但是当尝试添加新记录时,“XML Uploader”类型不会出现在新记录类型列表中。此外,对 class.tx_xmluploader_pi1.php 所做的更改无效。
那么我应该如何使用前端插件呢?或者创建一个单独的扩展会更好吗?
任何帮助将非常感激..谢谢。
I am trying to create an extension ('XML Uploader') with a backend module and a frontend plugin also.
The backend module will be used for managing xml files (upload, validate against a DTD), and the frontend plugin should be used for displaying the uploaded xmls.
The problem is with the frontend part:
I followed
the basic extension tutorial - added a new page, created a content element of type 'Insert plugin' - but when trying to add a new record, the type 'XML Uploader' does not appear in the list of new record types. Moreover, the changes made to class.tx_xmluploader_pi1.php have no effect.
So how should I work with the frontend plugin? Or would it be better to create a separate extension instead?
Any help would be very much appreciated.. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须包含扩展程序的静态模板(我假设您使用了kickstarter或extension_builder):
转到您的模板,在对象浏览器中您应该看到类似的内容:
如果找不到它,请编辑您的模板(编辑/modify => 编辑整个模板记录)并在“包含”选项卡中添加您的扩展模板
此外,检查 ext_localconf.php 中的行
这是您的 FE 插件注册的位置。
You have to include the static template of your extension (I presume you used the kickstarter or extension_builder):
go to the your template, in the object browser you should see something like:
if you can't find it, edit your template (edit/modify => edit whole template record) and add your extension template in the tab 'Includes'
Additionally, check your ext_localconf.php for the line
This is where your FE plugin is being registered.