Syntax of the project property file
If you want your project to be included in the project matrix page, you must either use Magnolia or publish the project property file on your web site. This article describes the content of the property file. You can also download an example of this property file here.
Keep in mind that this property file must be accessible on the internet without an authorization be available at any time, however its content is read only once a day. So if you make any changes, you might need to wait another day unill the changes are applied.
In case your page is down and Magnolia CMS can not access your property file, it will use values, that were read the day before (actually the day, when it was able to access your file the last time).
The property file contains several required fields and the rest is optional. If you have a look on the project matrix, you can see there is not much space there. Therefore the values are divided into several groups and only most important N links are displayed. If you enter too many links in the particular category, only the links considered important will be displayed, the other will remain hidden (Magnolia decides). Here are the limits of the groups:
|Category||Number of displayed links|
Note: I will often use "project.properties" as a name the project property file in this article, however the name is not important (it just need to be reffered properly in Magnolia).
- nodePath - this field is used for two things: sorting in the project matrix and determining, whether the discribed project is "project" or "sub-project". It must start with "/" (followed by project name (only characters and numbers are allowed)). If it is a subproject, it will contain the project name followed by another "/" and the subproject name.
Example: Let us imagine we have a project called Hibernate and under this project we have two subprojects called "Hibernate Tools" and "Hibernate Shards". To describe this structure, you would need to have three project property files (one for each of the projects). The first one will have nodePath="/hibernate" (let us call this project "master project"), the other two will have nodePath="/hibernate/tools" and "/hibernate/shards"
The reason, why the projects in the project matrix are ordered by this field and not by the projectName field is to allow the projects to be grouped by their master project. The master project is displayed first and after that come all subprojects. The subprojects have their name aligned a little bit more to the right than the master project. In case you do not have any subproject you will have only the "master project".
Never use "/project/subproject", unless you also specified "/project"! If you do, it will appear as if your project was the part of the project, that is before your project in the table.
- projectName - this is a human readable name of your project. It is rendered as a link to your home page. If you use " - " in the name, this hyphen and everything after it will be cut from the name (have you seen the spaces around the hyphen?). However if you use something like "My-great-tools", the hyphen is considered to be the part of the name and will remain present.
- homePage - the URL of the home page of your project. The project name is displayed as the link and this field specifies its target. In case you do not enter this field, Magnolia tries to use downloadsLink and docsLink fields instead, but you really should enter this field. If neither of those fields are present, your project will NOT be displayed on the project matrix page at all.
Downloads and Documentation links
- downloadsLink - the link to your downloads page.
- docsLink - the link to your main documentation page (usually the overview or the table of contents)
Only four links from this category will be displayed, if you enter more of them
- communityLink - rendered as a link with the text "Community"
- knowledgeBaseLink - rendered as "Wiki"
- userForumLink - rendered as "User forum"
- devForumLink - rendered as "Dev. forum"
- mailingListLink - rendered as "Mailing list"
- chatLink - rendered as "Chat". Some projects have a link to irc some to a html page. Both is correct.
- blogLink - rendered as "Blog"
- twitterLink - rendered as "Twitter"
Only one link will be displayed. In both cases (issueTrackerLink or jiraLink) the same text will be rendered = "Issue tracking". jiraLink is the link to Jira and issueTrackerLink should be used in case of any other issue tracking system. They are present both, because those fields are present in the project navigation Magnolia paragraph (and they are distinguished there). I suggest you to use the proper one in case someone decides to distinguish them in the project matrix too.
Only two links are displayed for this category. Git(hub) links take precedence over SVN (many of the projects moved from SVN to Github or some other Git, so there is high chance the Git repositories have newer code).
- srcLink - rendered as the link with text "Source"
- anonymousLink - the SVN repository for anonymous access.
- committerLink - the SVN repository for people participating on the project
- fisheyeLink - the link to Fish Eye
- viewvcLink - the link to View VC
- githubLink - the link to GitHub
- anonymousGitLink - anonymous access to GIT repository
- committerGitLink - like commiterLink but for GIT
- description - a short description of a project. It will be shown as a hint, when the user hovers above project title. Do not use html tags, they will be escaped.
- license - at this moment following values are allowed: "ASL" (Appache Software License v. 2.0), "EPL" (Elipse Public License), "LGPL" (Lesser General Public License version 2.1), LGPL2 (Lesser General Public License version 2.0), "LGPL3" (Lesser General Public License version 3.0) and "other". If you fill other, you must also fill otherLicenseLink field, because unlike in case of the known licenses project matrix does not know where the license page is located. The values ARE CASE SENSITIVE.
- subProjects - you can specify a list of URLs to project property files of subprojects of your project. Only master project is checked for this field, so it is not possible to reffer the subprojects indirectly. So let us say you report the project.properties file to email@example.com. We add this master project to Magnolia and it will check it. Magnolia finds the subProjects field in this property file. with several URLs to project.properties files of your subprojects. These will be added in the project matrix. However if you specify subProjects field in the property files of the sub-projects it will be ignored.
- specialIcon - there is an icon before the name of the project. It is used by applying a CSS class name. The default value is calculated from nodePath parameter - if your nodePath is /project/subproject, the style would be "project_icon_16x". You can change the part before "_icon_16x" by using this field. If your class is not in the list of the known icons, a blue bullet will be displayed before the name of your project by default. If you want to have your project specific icon, you must ask us by sending an e-mail to firstname.lastname@example.org. Our team will add the icon to the list. We will need to know the class name and to have the icon (picture 16x16 px.).
- archived - set this field to true, if your project is no longer active, but you let it available for general public. The project will be moved to "Archived" section of the project matrix. All links should still be valid. We do not want to have dead links in the project matrix even in the case of the dead projects.
- excludeInProjectMatrix - in case you want to remove your project from the project matrix, you can use this field (set its value to true). Your project will disappear from the project matrix, but Magnolia will still search for changes in the property file.
Please, if you use this field and it is not a temporary thing, let us know so we can remove your project property file destination from the list of parsed property files.
- For future use (at this moment unused in the project matrix) there are buildLink and hudsonLink available.