Home « Server software «
Documentation: categories/view.php
categories/view.php - View one category
The main panel has following elements:- The category itself, with details, introduction, and main text.
- The list of sub-categories
- The list of related sections
- The list of related articles
- The list of related files
- The list of comments
- The list of related links
The extra panel has following elements:
- A bookmarklet to post bookmarks at this category
- A link to the related rss feed, as an extra box
- A list of anchored (and feeding) servers, into a sidebar
- A search form into a sidebar, if the category has some keyword
- Means to reference this page, into a sidebar box
- The top popular referrals, if any
By default sub-categories are laid out in a decorated table. This can be changed by putting one of following keyword in the field for options:
- layout_as_inline - list the entire hierarchy of categories and related articles
- layout_as_yahoo - include thumbnail images, and tease with top articles
Several HTTP headers, or <meta> attributes of the displayed page, are set dynamically to help advanced web usage. This includes:
- a link to a RDF description of this page (e.g., '<link rel="alternate" href="http://127.0.0.1/yacs/sections/describe.php/4310" title="rdf" type="application/rdf+xml" />')
- a link to a RSS feed for this category (e.g., '<link rel="alternate" href="http://127.0.0.1/yacs/categories/feed.php/4038" title="RSS" type="application/rss+xml" />')
- a rdf section implementing the trackback interface
- a pingback link (e.g., '<link rel="pingback" href="http://here/yacs/services/pingback.php" />')
Restrictions apply on this page:
- associates and editors are allowed to move forward
- permission is denied if the anchor is not viewable
- access is restricted ('active' field == 'R'), but the surfer is an authenticated member
- public access is allowed ('active' field == 'Y')
- permission denied is the default
Accept following invocations:
- view.php/12 (view the first page of the category document)
- view.php?id=12 (view the first page of the category document)
- view.php/12/categories/1 (view the page 1 of the list of related categories)
- view.php?id=12&categories=1 (view the page 1 of the list of related categories)
- view.php/12/articles/1 (view the page 1 of the list of related articles)
- view.php?id=12&articles=1 (view the page 1 of the list of related articles)
- view.php/12/comments/1 (view the page 1 of the list of related comments)
- view.php?id=12&comments=1 (view the page 1 of the list of related comments)
- view.php/12/files/2 (view the page 2 of the list of related files)
- view.php?id=12&files=2 (view the page 2 of the list of related files)
- view.php/12/links/1 (view the page 1 of the list of related links)
- view.php?id=12&links=1 (view the page 1 of the list of related links)
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
Testeurs:
- Tof christophe@battarel.com
- Mark