官术网_书友最值得收藏!

Time for action—publish your first article

  1. Navigate to Content | Article Manager (you can also use the Article Manager shortcut in the Control Panel).
  2. In the toolbar, click on the New button (the green one with the big plus sign).
  3. In the Article: [New] screen, fill out the Title and Alias field as shown in the following screenshot (the Alias will help Joomla! create user-friendly URLs; you'll learn more about that in Chapter 12 on Search Engine Optimization):
  4. In the Section drop-down box, choose News. In the Category drop-down box, choose Latest. This will make your article turn up among the other articles in the News section of the site.
  5. Joomla! uses a structure of sections and categories to organize content. In this example, the News section holds the Latest category, which holds articles. You'll learn more about this principle of organizing content in the next two chapters.
  6. Make sure Published is set to Yes. This is the default option.
  7. Click on Front Page: Yes to make sure your news will be shown on the home page.
  8. Add some text in the text editor box. Any text will do; for now we're just playing around in the example site.
  9. Click on the Apply button (with the green tick) in the toolbar in the top right-hand side of the page. Joomla! will inform you that it has successfully saved changes to your article.
  10. Click on Preview in the Preview and Info Bar section of the page. This will take you to the home page of your site.

You're done! As you can see, you news item is published on the front page. What's more, Joomla! has automatically added your feature to the Latest News links too.

There's even one other way the visitor can navigate to your news item. Because you've added the article to the News section, clicking on the menu link The News in the Main Menu will also reveal your new article:

What just happened?

In a few steps you have created and published brand new content. By categorizing your new article in the right way, and clicking on the Show on Front Page option, the article text is added to the home page. Moreover, the article title is added as a hyperlink to the dynamic Latest News list, and finally the article also turns up on the page that shows items from the News category.

Extension actions example: Managing modules

A good web page shows a clear structure. The Joomla! example site presents lots of content in quite a crowded layout; every single space is filled with text. The site displays more than ten little blocks of content around the main content area (the mainbody). There are four menus, three of which are shown in the left-hand side column. Putting that many blocks on the page will almost certainly distract the reader from the main content. We're going to give the content some breathing room and help the reader scan the page.

Let's clean things up a little. We'll rearrange our screen and remove some unnecessary items. In Joomla!, you use the Module Manager to change the position and other settings of the site's modules (building blocks).

主站蜘蛛池模板: 海盐县| 泗阳县| 旌德县| 安新县| 桃江县| 永丰县| 延安市| 张家港市| 安仁县| 台中县| 兴山县| 金塔县| 长宁区| 长葛市| 梓潼县| 山丹县| 酉阳| 乌兰浩特市| 龙山县| 瑞丽市| 公安县| 安龙县| 成都市| 增城市| 龙江县| 西藏| 武功县| 汉源县| 普定县| 陆河县| 玉山县| 盘山县| 教育| 汉中市| 太和县| 松潘县| 登封市| 温宿县| 东海县| 会宁县| 汶川县|