This project is read-only.

Resources

PortfolioEngine.Net supports both image galleries and files (downloads). These are considered resources from the engine point of view and they have very similar definitions.

<images>

A picture is worth 1000 words so we'd better have a gallery ! This optional element contains all the images you want in the project's gallery.
This element can be defined in its own xml file.

<image>

This element defines an image of the project. You can have local images (relative to "~/Assets/project") or remote images. You can also specify a url for the thumb.

Usage
<images>
<image src="http://remote.address.com/image.jpg">
	<title>
		<content>Remote Image</content>
	</title>
	<description>
		<content>A remote image</content>
		<content language="fr">Une image à distance</content>
	</description>
</image>
<image src="culture.jpg" thumb="t_culture.png">
	<title>
		<content>Local image</content>
	</title>
</image>
</images>

Attributes
src - Url (or local path) of the image. Required.
thumb - Url (or local path) for the thumbnail. Optional.


Content
An image must have a <title> and optionally a <description>.

<files>

This element is used when you want to attach some files for download (code samples, binaries , source etc).
This optional element can be defined in its own xml file.

<file>

Use this element to define a download.

Usage
<files>
  <file src="code.zip">
	<title>
		<content>Project file</content>
	</title>			
  </file>
</files>

Attributes
src - Url (or local path) of the file. Required.

Content
A file must have a <title> and optionally a <description>.

<title>

This element is required for every resource. It contains the name you want displayed of the resource. See above example on how to use.

<description>

This element is required for every resource. It contains more details about the resource you want displayed . See above example on how to use.

Last edited Jan 18, 2011 at 6:05 PM by mike_sapiens, version 4

Comments

No comments yet.