ocPortal Tutorial: Advanced news
Written by Chris Graham, ocProducts
The ocPortal news system is advanced and flexible. It can be used for placing simple and short news pieces, for organising the articles that make up the main content of your website, and for giving members of your website their own personal blogs.Table of contents
Personal Categories / Blogs
|
A blog being started by adding news to a category that will automatically be created |
|
The blog is linked to in the member profile |
|
The blog in action |
To create a 'blog', a member only needs to choose to add news, and select their own personal category; if the category does not yet exist, it will be displayed as 'new', and created automatically upon submission. The news will display on the front page of the website (by default), and the blog for the member may be viewed from the links given in their member profile.
Feeds
|
Syndication links are displayed in the news block |
|
RSS/Atom are really XML formats, and look a bit like this |
The Comcode syntax you should use to place the main block in a page is as follows:
Code
[block="http://example.com/feed.xml"]main_rss[/block]
Code
[block="http://example.com/feed.xml"]side_rss[/block]
|
FeedReader is a good free program for viewing feeds |
Before RSS and Atom became popular, there was a type of feed called a 'Javascript feed', and also feeds that work via 'iframes'. ocPortal supports use of these feeds simply by putting the HTML that the feed maintainers ask you to use in your website, inside a Comcode HTML tag. The nature of these feeds are such that they embed portions of HTML into your own site, either via Javascript adding it directly on the client-side (users computers), or via a frame: they provide a simple bridge, rather than a clean feed.
To see all the feeds available in ocPortal (news is just the most typical usage for them), you may go to http://yourbaseurl/backend.php: you will be presented with a screen that lists the feeds. The screen here is written in yet another language named OPML, and again made viewable in a web browser using XSLT.
Trackbacks
|
Special invisible mark-up code in the ocPortal HTML allows systems to see how they can place trackbacks to ocPortal |
|
Trackbacks as displayed |
ocPortal can send trackbacks for news and receive them for almost any kind of content.
Concepts
- Blog
- A contraction of web-log: the popular term for an on-line journal
- Blogger
- Someone who runs a blog
- RSS
- Really simple syndication: a family of news feed formats
- Atom
- A news feed format made official by a standards body
- Trackback
- A trackback is placed at the content home-site when a blogger references a piece of content- in essence, allowing the source material to automatically link to those that reference/quote/comment-upon it



