[kdewebdev-site] Links and releases
Andras Mantia
amantia at kdewebdev.org
Wed Mar 9 23:31:33 EST 2005
Hi,
I committed the links.php and updated the releases.inc.php. :-) The
first is what I posted, but feel free to change the layout if you have
better ideas.
The later was required in order to support separate packages per
application like in case of Quanta (stable, BE/unstable).
First the normal usage (for one package/app) is:
<?
include $_libpath."releases.inc.php";
readReleaseFile("releases/releases.xml");
showReleases($_appFormal);
?>
I've updated Kallery and KLinkStatus as well.
When you want to display multiple packages use:
<?
include $_libpath."releases.inc.php";
readReleaseFile("releases.xml");
print "HEADER-FOR-RELEASES TABLE";
print "TEXT FOR FIRST PACKAGE (here quanta)";
releaseHeaderTable($_appFormal, "quanta");
print "TEXT FOR SECOND PACKAGE (here quanta_devel)";
releaseHeaderTable($_appFormal, "quanta_devel");
print "CLOSING TAGS FOR HEADER-FOR-RELEASES TABLE";
releaseChangeLogs("quanta");
releaseChangeLogs("quanta_devel");
?>
See the quanta/public_html/releases.php for real usage.
Also the changelog can have categories:
- none: toplevel information
- general
- bugfix
- improvement
- feature
Due to the above the XML for releases contains the following additions:
- release tag: "link" attribute, points to the file if it's not under
releases/filename
- release tag: "package" is the name of the package ;-)
- change tag: "category", see above
The changes are only in CVS, I have not uploaded them.
Andras
--
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://momo.creolmail.org/pipermail/kdewebdev-site/attachments/20050309/5495b221/attachment.pgp
More information about the kdewebdev-site
mailing list