|
|
 |
Select the Script
The first step in linking to the News in your site is to select the PHP script you want to use to serve news content. Both scripts do very different things, so in creating a link, you just have to choose what you want visitors to your site to see when they click on the link you create.
The two scripts are as follows:
- results.php:
http://www.bu.edu/phpbin/news/releases/results.php?
- Displays lists of titles of articles chronologically from most recent to oldest. Clicking on the title will display the article.
- Allows you to select sets of releases by college, category, year, month, or by a particular keyword.
- Allows you to narrow the set of releases you want to display if you select multiple selectors, i.e. selecting college and keyword will select the news releases from the specified college containing the keyword.
- display.php:
http://www.bu.edu/phpbin/news/releases/display.php?
- Displays a single news release article.
- Selects the article by an arbitrary id number.
Primarily, the results.php script is more useful in presenting news content to your visitors, but there may be instances where you want to link directly to a specific news release article, such as a page about a research project at your school for which you want to display the news release.
Proceed to either Select the Releases if you wish to utilize the results.php script or Select a Single Release if you want to utilize the display.php script.
|