iNews Publisher 3.0 Demonstration Web Site

Implementation Home

Include News on Another PageInclude Statement Help

Page can show other content, plus recent news titles/links.

NOT CATEGORY SPECIFIC
      Search Form

    Scrolling News
      Vertical (Up ^)
      Horizontal (<)
      Typing (>)

    Columns of News
      Most Recent News
      Most Popular News
      Highlighted News Only
      Recent with Summary

CATEGORY SPECIFIC
    Image/Summary
    Most Recent

Link to Full-Page Views

Implement iNP into your site using these popular links.

Category Sort - Current Articles

    Category
      - Headline & Summary

    Category
      - Headlines Only

    Category
      - Nested View


All current articles
     - Not Sorted by Category

    All Articles - Summary
    All Articles - Headlines
    All Articles - Full Text
    Random Article View

Search Current & Expired Articles

    Search for Article

Quick Scan
Read the full article, without leaving the summary page.

    Dynamic Listing - All
    Dynamic Listing - Category

Expired Articles
(Not shown in other lists.)

    Archived Articles Only

Sharing News

Your news on other sites!
    RSS Syndication

Their news on your site.
    News Grabber Example

    Public Article Suggest Form



Include Statement Help:

The iNP include statements can be added to any asp page, in almost any spot.

Inc_xxx.asp file Paths:

There is one are two paths that need changing before using the inc files in a location other than the News root folder. (Example: inc_search.asp) These changes are described in detail in your install guide, which was in your download zip file. Install guides can also be obtained from Expinion.net.

These changes include the database connection path (use your config.asp file as a reference), and the full URL to the full article link. (From within the inc file, search for view.asp or articles.asp.)




Include Statement Paths:

Example 1:

    <!--#include file="News/inc_search.asp"-->

    All include statements shown on these example pages may need the path adjusted. (Correct for your News folder name. The path may need further adjusting, depending on where the page receiving the include statment is located in relation to the iNP installation.)

    The code above presumes that the page that will show the search, is in the same directory as the News install folder, which is called News.



Example 2:

You'll be able to use the following example no matter where your existing page is located.

    If your iNP search file is here:

      http://www.yoursite.com/scripts/News/inc_search.asp.

    Use this include statement:

          <!--#include virtual="/scripts/News/inc_search.asp"-->

    As you can see, the text between the quotes in the include virtual statement will show the entire URL to the iNP file, except the domain name and extension. This path (underscored portion) must begin with a /.





Hints:

1. If you plan to use the include statements on files outside the News folder, then you'll need to modify a line to show your full URL to the News installation.

See your install guide for more information.

2. It may be convenient to build your page as a table (chart). Then you can include different news views within cells to keep your page neat, with minimal effort. Or, use some of the cells to include some of your other page content.

3. Any HTML page can be saved as an ASP page, then opened to add the include statement.

4. If you can't use an asp page, you can't use the include statement. However, you may still be able to use an iFrame.

5. Some inc_x.asp files have additional settings that can be found and modified by opening the inc_x.asp file itself. For example: Several of the scrolling views have settings for the speed of the scroller, etc.

6. Some unique settings that can't be found in the files themselves, may be found in your config.asp file, your administrative settings area (tools tab), on in your agent profile (Home tab, update profile.)

7. The inc_cate_specific_side.asp, and inc_recent_news_cate_specific.asp files list news for one single category only. To use these files, you need to specify the category ID value within the inc file itself. (See the install guide for more details.)