覆盖 Privatemsg 模块消息视图布局

发布于 2024-09-07 04:42:15 字数 132 浏览 3 评论 0原文

Privatemsg 模块很棒,默认的消息列表和消息创建表单都很好,但用于查看消息的表单(在我看来)对于大多数网站用户来说非常没有吸引力且令人困惑 - 甚至无法使用。是否有任何方法可以使用面板或显示套件来设计覆盖,或者是更改模板本身的唯一方法。谢谢。

The Privatemsg module is great, and the default list of messages and message-creation form are fine, but the form for viewing a message (in my opinion) is horribly unattractive and confusing for most site users - to the point of being unusable. Is there any way of using Panels or Display Suite to design an override, or is the only way to change the template itself. Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝眼泪 2024-09-14 04:42:15

可以创建一个可用于消息的面板页面,但这并不是一件容易完成的事情,并且需要一些工作。

您可以编写自己的自定义代码来获取消息。为了使其成为真正的面板,您需要制作一个参数插件、一个上下文插件,也许还需要一个关系插件。如果您了解面板的使用方法,那么这将是一件足够简单的事情,但如果您不熟悉这类事情,则可能需要一些时间才能让事情按照您想要的方式工作。

除非您想插入特定于上下文的内容,否则实际上没有任何理由使用面板。如果这只是页面样式的问题,那么通过覆盖 Privatemsg 使用的模板和主题功能,您将更快地获得结果。

因此,除非您熟悉面板或想要熟悉面板,有一些特殊的上下文需求,否则您应该只进行常规主题来完成工作。这将是最快、最干净的方法。

You could create a panels page, that you can use for the messages, but it is not something that would be easily done, and it would require some work.

You could write your own custom code to get the messages. To make it real Panels like, you would need to make an argument plugin, a context plugin and maybe also a relationship plugin. If you know your way around Panels, it would be a simple enough thing to do, but if you're not familiar with that kind of thing, it will probably take you a little while to get things working like you want to.

Unless you want to insert context specific stuff, there's not really any reason to use panels though. If it's just a matter of styling the page, you will get to your results much faster by overriding the templates and theming functions that Privatemsg uses.

So unless you're familiar with Panels or want to become familiar, have some special context needs, you should just do regular theming to get the job done. It'll be the fastest and cleanest way to do this.

蓝戈者 2024-09-14 04:42:15

请注意,我们正在努力改进默认布局,我建议您查看 Privatemsg 6.x-2.x 或 7.x-1.x :)

Note that we're working hard to improve the default layout, I suggest you have a look at Privatemsg 6.x-2.x or 7.x-1.x :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文