Atom feed 中的自定义标签

发布于 2024-12-21 08:54:11 字数 258 浏览 7 评论 0原文

我正在使用 Symfony MVC 来构建一个网站。我的模型类之一有两个日期字段:开始日期结束日期。我想通过网络界面和原子源提供这些数据。我应该制作自定义标签 还是应该将它们添加到 summary 标签中?或者还有其他解决方案吗?这些有何优点和缺点?

I am using Symfony MVC to build a website. One of my model classes has two date fields: start date and end date. I want to provide this data via both web interface and atom feed. Should I make custom tags <dateStart> and <dateEnd> or should I add these to the summary tag? Or is there another solution? What are merits and demerits of these?

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

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

发布评论

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

评论(1

别再吹冷风 2024-12-28 08:54:11

也许您应该使用 Atom 扩展 作为过期日期 end date 并使用 作为 开始日期

https://datatracker.ietf.org/doc/html/draft-snell-atompub-feed-expires-06#page-4

Maybe you should use Atom extension <age:expires> for the expiration date end date and use <published> for the start date

https://datatracker.ietf.org/doc/html/draft-snell-atompub-feed-expires-06#page-4
http://www.atomenabled.org/developers/syndication/

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