简体   繁体   English

Joomla动态文章内容

[英]Joomla Dynamic Contents in Article

I am new to Joomla, I am currently trying to set up a information portal for a university which will have information regarding all the faculty members. 我是Joomla的新手,我目前正在努力为一所大学建立一个信息门户网站,该门户网站将提供有关所有教职员工的信息。 The information to be displayed would have information like Subjects they teach, total experience, phone number, email id, address, etc etc. 要显示的信息将包含他们教授的主题,总体验,电话号码,电子邮件ID,地址等信息。

Normal way to deal with this to write a new article about each faculty member. 正常的方式来处理这个问题,写一篇关于每个教员的新文章。 But I want this to be more dynamic. 但我希望这更具活力。 I dont like the idea to create a new article for each faculty. 我不喜欢为每个教师创建一篇新文章的想法。 I am looking for a way that all the information(subjects, email, phone, etc) should be stored in database and while displaying all information should be fetched from the database itself and should be displayed in a preformated way. 我正在寻找一种方法,所有信息(主题,电子邮件,电话等)应存储在数据库中,同时显示所有信息应从数据库本身获取,并应以预先格式化的方式显示。

Please let me know if anyone is having any idea regarding this..Many Thanks in advance 如果有人对此有任何想法,请告诉我。很多人提前感谢

I'd use a CCK plugin like K2 and add and Extra Field Group, like this ... that way it could be added in the admin. 我使用像K2这样的CCK插件,并添加和Extra Field Group, 就像这样 ...这样就可以在管理员中添加。 Done what you're doing with many types of content this way. 用这种方式完成你正在做的很多类型的内容。

UPDATE: Just remembered this great little component called joodatabase 更新:刚刚记得这个名为joodatabase的小组件

You can create a module, or use one from the Joomla extension directory (You're looking for a directory module). 您可以创建一个模块,或使用Joomla扩展目录中的模块(您正在寻找目录模块)。 A module in Joomla will allow you to access the data stored in the database. Joomla中的模块允许您访问存储在数据库中的数据。

http://extensions.joomla.org/search?q=directory http://extensions.joomla.org/search?q=directory

You can include an external PHP Script in your article and let the php script handle the data based on the query string paramerter(may be like faculty id or something). 您可以在文章中包含一个外部PHP脚本,并让php脚本根据查询字符串参数来处理数据(可能就像是教师ID或其他东西)。 In order to do that you will need to install a module. 为此,您需要安装模块。 http://extensions.joomla.org/extensions/edition/custom-code-in-content/60 . http://extensions.joomla.org/extensions/edition/custom-code-in-content/60 Using this module you should be able to include a php script within the article. 使用此模块,您应该能够在文章中包含php脚本。

Old thread but still a hot topic I think Dynamic Articles with TinyButStrong would solve this problem https://www.tinybutstrong.com/plugins/joomla/tinybutstrong_help.html 旧线程,但仍然是一个热门话题我认为动态文章与TinyButStrong将解决这个问题https://www.tinybutstrong.com/plugins/joomla/tinybutstrong_help.html

For example adding Tag or Search Parameter into content if no article exist. 例如,如果没有文章,则将标记或搜索参数添加到内容中。 Place for much more phantasy 更加幻想的地方

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM