操作 BlogPost 元数据

发布于 2024-12-20 12:51:59 字数 262 浏览 6 评论 0原文

遵循 Orchard 中“unabridge”博客文章的说明,我现在想将博客文章日期和评论计数分开,以便日期显示在博客文章之前,而评论计数显示在之后。那该怎么办呢?

更好的是,我还希望评论计数成为博客文章详细信息的超链接。那该怎么办呢?

After having followed the instructions to "unabridge" blog posts in Orchard, I'd now like to separate the blog post date and comment-count, so that the date appears ahead of the blog post, and the comment-count appears after. How would that be done?

Even better, I'd additionally like to have the comment-count be a hyper link to the blog post detail. How would that be done?

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

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

发布评论

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

评论(1

迷路的信 2024-12-27 12:51:59

要执行此操作以及许多其他类似的操作,您应该启用形状跟踪(它作为设计器工具模块的一部分)。这将向您显示哪个模板正在渲染什么,以及它们的位置。它还会告诉您可以在主题中创建哪些模板来覆盖行为。特别是“模型”选项卡将向您显示整个模型对象图,并为您提供要放入模板中的表达式,以将任何属性包含到标记中。

To do this and many other similar things, you should enable shape tracing (it comes as part of the designer tools module). This will show you what template is rendering what, and also where they are positioned. It will also tell you what templates you can create in your theme to override behavior. The Model tab in particular will show you the whole model object graph and will give you the expression to put in your template to include any property into your markup.

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