Joomla cho người mới bắt đầu part 9 - Pdf 16

Chapter 4
[ 87 ]
The Category Manager shows the results (two new categories), all in one secon:
What just happened?
In Joomla!, you create content groups before you can actually start adding arcles and menu
links. Secons are the main, high-level way to organize your site; categories are the second
level. When you add secons and categories in the backend you'll noce nothing changes on
the frontend. Secons and categories aren't automacally shown on the site. To get them to
display we'll create a menu link poinng to this secon and category content later.
By dening a secon and some categories you've now got a foundaon to add any amount
of content on these two main subjects. In later chapters, we'll expand this structure.
Add articles to the categories
Now we come to the core of content management and actually start creang content! We'll
make some arcles, apply the appropriate formang, and add images.
Time for action – create an article
First, let's create an arcle in the Lectures category:
1. Navigate to Content | Arcle Manager. Click on New. The Arcle: [New]
screen opens.
2. In the Title box, type the tle of the arcle (in this example Bad Abstract Painngs).
You can leave the Alias eld blank.
3. In the Secon drop-down box, select Acvies. In the Category drop-down box,
select Lectures. Now you see why you needed to create a secon and a category
before. Without these you cannot assign the arcle to the appropriate "containers"
within in your overall site structure.
4. In the editor screen, write the arcle. In this example, we'll just use dummy
text. It's quite easy to copy and paste any amount of fake paragraph text
from www.lipsum.com.
Download at Wow! eBook
WWW.WOWEBOOK.COM
Web Building Basics: Creang a Site in an Hour
[ 88 ]

the arcle text into an intro text and the main arcle text. This way Joomla! will be able
to separately display the intro, with a Read more link to the full arcle. In the editor, the
separaon is indicated by a red doed line.
Download at Wow! eBook
WWW.WOWEBOOK.COM
Chapter 4
[ 91 ]
You've seen this division at work on the sample site home page that contains several short
intro texts. Only when a visitor clicks on the accompanying Read More link they are taken
to a page with the full arcle text.
Have a go hero – add your own images to articles
To the arcle you just created, you added an image from Joomla!'s default image set. For
tesng purposes that's okay, but in real life you'll want to add your own imagery. To do this,
click on the Image buon at the boom of the arcle editor screen. In the pop-up screen,
you'll see an Upload box. Click on Browse les to nd an image le on your hard drive.
Select the image le and click on Start Upload. A thumbnail of the uploaded image will
appear among the other thumbnails (you may have to scroll down if there are a lot of
pictures). Click on the desired thumbnail. Choose the appropriate Align seng and click
on Insert. The pop-up window closes; your picture is inserted.
Making content visible: Create a menu link
The arcle you've just created is ready and it's stored in Joomla!'s database—but it's sll
invisible on the frontend of the site. That's because there's no link poinng to it. The Main
Menu is empty, except for the Home link.
Time for action – add a menu link
Let's nish the three steps of content creaon and add a link to your arcle:
1. Navigate to Menus | Main Menu. Click on the New buon.
2. In the Select Menu Item Type box, click on Arcles | Secon Blog Layout. This
menu link type tells Joomla! to display intro texts and Read More hyperlinks to
all secon content. You'll see what that looks like in a minute.
3. In the Title eld, type Acvies.

WWW.WOWEBOOK.COM
Chapter 4
[ 93 ]
When the visitor clicks
on the Read more link he
is taken to the full arcle.
The breadcrumb trail
just above the arcle
reects the secons and
categories structure that
you have created: Home
| Acvies | Lectures |
Bad Abstract Painngs.
Have a go hero – create more articles
For the example site you'll need some more arcles. Add a few dummy arcles to each of the
new categories. To do this repeat the steps you just took in Time for acon - create an arcle.
You can create arcles using the tles displayed in the following screenshot. In this example,
three arcles have been added to each of the categories:
As you can see, the Arcle Manager displays an overview of the enre site contents. In
the Title column all of the arcles are shown; at the far right you'll see the secons and
categories these arcles are assigned to.
Download at Wow! eBook
WWW.WOWEBOOK.COM
Web Building Basics: Creang a Site in an Hour
[ 94 ]
AAA qqquuuiiiccckkk wwwaaayyy tttooo aaadddddd nnneeewww aaarrrcccllleeesss iiisss uuusssiiinnnggg ttthhheee CCCooopppyyy bbbuuuooonnn iiinnn ttthhheee AAArrrcccllleee MMMaaannnaaagggeeerrr
JJJuuusssttt ssseeellleeecccttt ttthhheee aaarrrcccllleee yyyooouuu wwwaaannnttt tttooo uuussseee aaasss aaa bbbaaassseee fffooorrr aaa nnneeewww aaarrrcccllleee aaannnddd cccllliiiccckkk ooonnn
CCCooopppyyy FFFooollllllooowww ttthhheee ssscccrrreeeeeennn iiinnnssstttrrruuucccooonnnsss tttooo aaadddddd aaa cccooopppyyy ooofff ttthhheee aaarrrcccllleee tttooo aaannnyyy cccaaattteeegggooorrryyy
OOOpppeeennn ttthhheee cccooopppiiieeeddd aaarrrcccllleee (((iiittt wwwiiillllll hhhaaavvveee ttthhheee eeexxxaaacccttt sssaaammmeee tttllleee aaasss ttthhheee ooorrriiigggiiinnnaaalll))) aaannnddd
ccchhhaaannngggeee iiitttsss tttllleee aaannnddd aaasss mmmuuuccchhh aaasss nnneeeeeedddeeeddd ooofff iiitttsss cccooonnnttteeennntttsss

Let's create a Mission Statement page by adding an uncategorized arcle.
1. Navigate to Content | Arcle Manager. Click on New.
2. In the Title box, enter Mission Statement.
3. In the text editor area, add the Mission Statement text and add an image, if you
like. For this example, we've entered the following text:
We all know the works of great art throughout the centuries. But what about
ordinary people's art? What did amateur arsts create? Much of their creave
output has been discarded, thrown away because of its lack of arsc value. Let's
not let that happen to today's amateur painngs. Let's preserve the ordinary man's
arsc view on reality.
The beauty in ugliness
The Society for the Reappreciaon of Ugly Painngs seeks to nd and promote the
beauty that's hidden behind supercial ugliness. Tour our website to discover that
beauty, too!
4. You can add an image to the text if you like; click the Image buon at the boom
of the editor screen; select and insert an image.
5. Click on Save.
Download at Wow! eBook
WWW.WOWEBOOK.COM
Web Building Basics: Creang a Site in an Hour
[ 96 ]
The uncategorized arcle is nished—we just need a menu link to make it visible.
6. Navigate to Menus | Main Menu. Click on New.
7. In the Menu Item: [ New ] screen, we'll create a link to a single arcle. Let's select
the appropriate Menu Item Type; click on Internal Link | Arcle | Arcle Layout.
8. In the Title box, enter Mission Statement.
9. In Parameters (Basic) secon, click on Select to choose the arcle this menu link
will link to. In the pop-up box, select the Mission Statement arcle. The pop-up
window closes.
10. Click on Save. Click on Preview to admire the results. The menu now displays a new


Nhờ tải bản gốc
Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status