Adding news articles

These documentation pages are no longer maintained. Please visit the new documentation site.

One way to start is by creating and structuring the actual news-content. The administration interface of eZ publish makes this an easy match. For the news section, we'll use two of the built-in content classes, Folder and Article. We'll create a folder dedicated for news. Later on, all news articles will be placed inside this folder. The following list of steps explains how to create the folder.

  1. Bring up the administration interface.
  2. Make sure you're in the root folder.
    (If not: click the "Content structure" tab).
  3. From the dropdown box approximately in the middle of the screen, select "Folder".
  4. Click the "Create here" button.
  5. Fill out the name and the description fields.
    Name:
    News
    Description:
    This folder contains all the news articles.
  6. Click "Send for publishing".
  7. The system will bring you back to the root folder.

We created a folder to store our news articles. This folder is a container which we use to store information. The next step is to create several news articles which are stored in our folder.

  1. Bring up the administration interface.
  2. Make sure you are in the root folder.
    (If not: click the "Content structure" tab).
  3. Click on the name of the folder that we just created.
    The system will take you to it (and show the empty contents of the folder).
  4. From the dropdown box, select "Article"
  5. Click the "Create here" button.
    The system will bring up the "Edit Article" page.
  6. Fill in the Title, Intro and Body fields. For example, you could add the following content:
    Title:
    Batman beats Joker at local tournament
    Intro:
    Batman was playing against the evil Joker. The game ended in a non-violent way. However, rumor has it that NCF is considering sanctions against both players in this game for crimes against chess.
    Body:
    After beating his main competition in round 2, The Joker seemed to have things wrapped up. Indeed, Batman quickly won two pawns in his round 3 game against The Joker (1412). Then Batman seemed to enter a twilight zone of the mind in which he forgot how to play chess. After a series of incredible blunders Batman escaped from a lost middlegame into a totally lost endgame, down a piece and several pawns in a simple position where the pawns could not be stopped. Then the Joker, 'dizzy from success' as the Russians say, allowed Batman to trap his bishop and force a repetition of the position; but the fat lady hadn't sung yet. Batman, dissatisfied with swindling a draw in a game which most players would long since have resigned, wanted more. So he declined to force the repetition, and promptly walked into a one-move knight fork of his own king and rook. Rumor has it that NCF is considering sanctions against both players in this game for crimes against chess.
  7. Add a thumbnail image (upload new, find object, folder up, Media, select 'article_image_01').
    Feel free to use this image: article_image_01.png
  8. Click the "Send for publishing" button.
    The system will bring you back to the "News" folder.
    You should be able to see the title of article.
    (You can see the article: "http://[..]/index.php/tscm/news").

To have only one news article is boring, so lets create another one.

  1. Simply repeat the first steps of the previous step-by-step list (create a news article in the news folder).
  2. Feel free to use the following content:
    Title:
    New TSCM site
    Intro:
    The board of TSCM has decided that it is time to change the original web page, which hasn't been changed since 1998. The new site will be powered by a system called eZ publish and will hopefully be a bit more flexible than the static page that we've had before.
    Body:
    Since John is gone, and because of the increasing popularity of the internet and our club, TSCM has decided to hire a freelance developer called Jane Doe to build a new TSCM site. The site will be running on the top of a sophisticated system called "eZ publish" (created by a handful of crazy people at http://www.ez.no) and will hopefully become the part of our new image.The Scandinavian Check Mates would like to thank John Doe (the previous webmaster) for his efforts. Rumors say that John moved to Brazil a couple of months ago. He will be offline for some years while researching the capitalist's primitive slaughter of the rain forests.
  3. Add a thumbnail image.
    Feel free to use this image: article_image_02.png
  4. Click the "Send for publishing" button.
    The system will bring you back to the News folder.
    You should be able to see the title of the added articles.

Comments

Add a thumbnail instructions - need clarification

The documentation instructions for adding a thumbnail to the News articles view is a little unclear.

"Add a thumbnail image (upload new, find object, folder up, Media, select 'article_image_01')."

Can you please review this and insert the steps in the correct order.

I think that these instructions may not relate to the interface in 3.8.4.

Particularly the step "find object" is not easy to find.

Thankyou

Contents

Building an eZ publish site

Prerequisits
Situation
Creating the TSCM site
Testing the interfaces
Setting up the main layout
Creating sections
The welcome page
The news page
    Adding news articles
    Assigning the News folder to the News...
    Overview of the latest news
    Full display of an article
    News archive
The members page
The guestbook
The links page


Created

22/10/2003
12:31:52 pm
by Balazs Halasy

Last updated

23/11/2004
2:08:43 pm
by Raymond Bosman

Authors

Balazs Halasy
Ole Morten Halvorsen
Raymond Bosman



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.