Joomla 中的自定义字段(类似于 Wordpress 的自定义字段)
有没有办法向 Joomla 1.5 添加自定义字段(其工作方式与 Wordpress 类似)?我需要能够将它们与文章内容分开输入(最好作为文章标题旁边的输入字段),并且在调用部分/类别显示时也可以使用它们。
例如,如果任何给定的文章有一个名为“foo”的自定义字段,其中填充了值“bar”,那么我不仅需要能够在文章中显示它,而且还需要能够在文章摘录旁边的类别页面上显示它。
is there a way to add custom fields (that would be working similarly to those Wordpress has) to Joomla 1.5? I need to be able to have them entered separately from the article content (preferably as input fields next to article title) and also have them available while calling for section/category display.
For example, if any given article has a custom field named 'foo' filled with value 'bar', I need to be able to display it not only wihtin the article, but also on the category page next to the article excerpt.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
任意数量的 CCK 风格组件都可以让您完成您想要的任务。看看这些 - http://extensions.joomla.org/extensions/news -生产/内容构建
就个人而言,我在我做的每个 Joomla 网站上都使用 K2。一旦您学会了如何使用子模板并覆盖额外的字段,就会成为一个非常强大的工具。
Any number of CCK style components would allow you to do what you are looking for. Take a look at these - http://extensions.joomla.org/extensions/news-production/content-construction
Personally, I use K2 on every Joomla site I do. Once you learn how to use the subtemplates and overrides the extra fields are a very powerful tool.
您考虑过使用标签吗?
https://docs.joomla.org/J3.x:How_To_Use_Content_Tags_in_Joomla!
https://www.ostraining.com/blog/joomla/joomla-31- Tags/
它非常灵活,并且内置于 Joomla,因此,如果它非常适合您的项目,则无需安装额外的扩展。
祝你好运!
Have you considered using tags?
https://docs.joomla.org/J3.x:How_To_Use_Content_Tags_in_Joomla!
https://www.ostraining.com/blog/joomla/joomla-31-tags/
It's flexible and built-in to Joomla, so if it's a good fit for your project it saves installing an extra extension.
Good luck!