Chapter 14. Using the Encyclopedia Module


The Encyclopedia module lets you build multiple online "reference books," each of which can contain multiple entries. Figure 14.1 shows the Encyclopedia Manager, accessible from the Administration menu, where you'll create your first encyclopedia.

Figure 14.1. Creating a new encyclopedia.


Once you've created an encyclopedia (or several, if you like), you can start adding terms. Figure 14.2 shows the Add a New Encyclopedia Term entry page, which is available after you've created at least one empty encyclopedia. As you can see, you can enter a title for the entry, as well as text describing it.

Figure 14.2. Creating a new encyclopedia term, or entry.


Your entry text can include basic HTML formatting, which I covered in Topic 12, "Using the Content Module." It can also include the special <!--pagebreak--> tag, which breaks your entry into multiple pages for easier reading. I also discussed that tag in Topic 12. Quickly review these basic formatting tags:

  • <br> creates a line break. Use two in a row to create a new paragraph, separated from the previous one by a blank line.

  • <b> boldfaces text. Just pick whatever you want to be boldfaced and surround it with <b> and </b>.

  • <i> works similar to boldfacing, except that it italicizes. Whatever you want to be in <i>italics</i> should be surrounded by these tags.

  • <u> handles underlining; just surround text with the tags to make that text <u>underlined</u>.

  • You can surround paragraphs with the special <p>paragraph</p> tags. Doing so eliminates the need to use the <br> tags because paragraphs are automatically separated by some whitespace.

  • The <!--pagebreak--> tag, which can be used only in certain areas of PHP-Nuke (and which isn't a standard HTML tag at all, but rather something special PHP-Nuke utilizes), breaks long content into multiple pages. PHP-Nuke will automatically provide Next and Previous links, allowing users to navigate through your material very easily.

Another useful tag, especially within encyclopedias, is the image tag. It looks like this: <img src="http://www.mywebsite.com/images/mypicture.gif">. The src portion points to a graphic file that's living on a Web server someplace, which means that the image tag enables you to insert a picture into your text. This is an especially useful function within encyclopedia entries, where a good picture can easily save you from having to type a long description of something.



    PHP-Nuke Garage
    PHP-Nuke Garage
    ISBN: 0131855166
    EAN: 2147483647
    Year: 2006
    Pages: 235
    Authors: Don Jones

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net