简体   繁体   English

如何从mysql获取文章到joomla菜单

[英]How to get article from mysql to joomla menu

I am very new to all this, I successfully set up joomla. 我对这一切都很陌生,我成功设置了joomla。 I could login to the admin page and create sample articles, life is good so far. 我可以登录到管理页面并创建示例文章,到目前为止,一切都很顺利。 I put all articles in one folder called "Articles" under joomla folder and populated my database with links. 我将所有文章放在joomla文件夹下的一个名为“ Articles”的文件夹中,并用链接填充数据库。 Is this the best place to keep my articles? 这是保存文章的最佳地点吗?

my article names are as below 1_1_1.html ..... n_n_nn.html Now I want a selected article to showup under specific submenu. 我的文章名称如下1_1_1.html ..... n_n_nn.html现在,我希望所选文章显示在特定子菜单下。

Which file in joomla folder I should modify and How? 我应该修改joomla文件夹中的哪个文件,以及如何修改? If there are any videos to understand this concept I would greatly appreciate. 如果有任何视频可以理解这个概念,我将不胜感激。 I am sorry, if its a very basic question. 很抱歉,如果这是一个非常基本的问题。

No need to modify any file for this at all. 完全不需要为此修改任何文件。 So you've created the article and now you need to tell Joomla to put that article into a menu so that your users can get to it. 因此,您已经创建了该文章,现在您需要告诉Joomla将其放入菜单,以便您的用户可以使用它。 So 所以

  • go into the administrator and go to Menus | 进入管理员并进入菜单| Main Menu | 主菜单 Add New Menu Item 添加新菜单项
  • Click on "select" beside "Menu Item Type" 单击“菜单项类型”旁边的“选择”
  • Select "Single Article" 选择“单篇文章”
  • Now select the article you want displayed in the "Select Article" area on the right hand side 现在,在右侧的“选择文章”区域中选择要显示的文章
  • Enter a "Menu Title" for the menu item (this is the text that is displayed to your users) 输入菜单项的“菜单标题”(这是显示给用户的文本)
  • Since you want this to be a submenu select the parent menu in the "Parent Item" section 由于您希望它成为子菜单,因此请在“父项”部分中选择父菜单。

Click save and refresh the website frontend 点击保存并刷新网站前端

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

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